mirror of
https://github.com/neovim/neovim.git
synced 2024-12-26 14:11:15 -07:00
9 lines
343 B
VimL
9 lines
343 B
VimL
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>])
|