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:
Wu Zhenyu
2022-10-11 14:54:45 +08:00
parent 4c06f2e231
commit 52b9158acc
5 changed files with 85 additions and 0 deletions
+11
View File
@@ -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: