blob: e3482cb0fee81ed52b8dc55a8b3a61c50f1d5204 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
function! s:complete(lead, _line, _pos) abort
return sort(filter(map(globpath(&runtimepath, 'autoload/health/*', 1, 1),
\ 'fnamemodify(v:val, ":t:r")'),
\ 'empty(a:lead) || v:val[:strlen(a:lead)-1] ==# a:lead'))
endfunction
command! -nargs=* -complete=customlist,s:complete CheckHealth
\ call health#check([<f-args>])
|