mirror of
https://github.com/raimon49/requirements.txt.vim.git
synced 2026-05-19 14:59:39 +08:00
Add completions and documents
Use `vimdoc .` to generate documentation. User can use plugin manager to do it automatically when update plugin.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
""
|
||||
" @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:
|
||||
Reference in New Issue
Block a user