mirror of
https://github.com/raimon49/requirements.txt.vim.git
synced 2025-12-06 10:04:23 +08:00
Use `vimdoc .` to generate documentation. User can use plugin manager to do it automatically when update plugin.
12 lines
337 B
VimL
12 lines
337 B
VimL
""
|
|
" @section Configuration, config
|
|
|
|
function! s:Flag(name, default) abort
|
|
let l:scope = get(split(a:name, ':'), 0, 'g:')
|
|
let l:name = get(split(a:name, ':'), -1)
|
|
let {l:scope}:{l:name} = get({l:scope}:, l:name, a:default)
|
|
endfunction
|
|
|
|
let g:requirements#utils#plugin = {'Flag': funcref('s:Flag')}
|
|
" vim: et sw=4 ts=4 sts=4:
|