mirror of
https://github.com/neovim/neovim.git
synced 2026-04-29 02:34:10 +00:00
health.vim: remove :CheckHealth command
For back-compat, :CheckHealth runs :checkhealth. But don't define :CheckHealth explicitly, it adds noise to wildmenu completion. Completion of healthchecks doesn't yet work with :checkhealth, this is a regression but it needs to be implemented for :checkhealth rather than keeping :CheckHealth around.
This commit is contained in:
@@ -114,7 +114,7 @@ let s:err = ''
|
||||
let s:prog = provider#node#Detect()
|
||||
|
||||
if empty(s:prog)
|
||||
let s:err = 'Cannot find the "neovim" node package. Try :CheckHealth'
|
||||
let s:err = 'Cannot find the "neovim" node package. Try :checkhealth'
|
||||
endif
|
||||
|
||||
call remote#host#RegisterPlugin('node-provider', 'node', [])
|
||||
|
||||
@@ -1,8 +1 @@
|
||||
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>])
|
||||
autocmd CmdUndefined CheckHealth checkhealth
|
||||
|
||||
Reference in New Issue
Block a user