mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
health: completion for :CheckHealth
This commit is contained in:
parent
e7b1b5d6ed
commit
370379a486
@ -1 +1,8 @@
|
|||||||
command! -nargs=* CheckHealth call health#check([<f-args>])
|
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>])
|
||||||
|
Loading…
Reference in New Issue
Block a user