Skip to content

Commit 341102f

Browse files
committed
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.
1 parent 102e068 commit 341102f

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

runtime/autoload/provider/node.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ let s:err = ''
114114
let s:prog = provider#node#Detect()
115115

116116
if empty(s:prog)
117-
let s:err = 'Cannot find the "neovim" node package. Try :CheckHealth'
117+
let s:err = 'Cannot find the "neovim" node package. Try :checkhealth'
118118
endif
119119

120120
call remote#host#RegisterPlugin('node-provider', 'node', [])

runtime/plugin/health.vim

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
function! s:complete(lead, _line, _pos) abort
2-
return sort(filter(map(globpath(&runtimepath, 'autoload/health/*', 1, 1),
3-
\ 'fnamemodify(v:val, ":t:r")'),
4-
\ 'empty(a:lead) || v:val[:strlen(a:lead)-1] ==# a:lead'))
5-
endfunction
6-
7-
command! -nargs=* -complete=customlist,s:complete CheckHealth
8-
\ call health#check([<f-args>])
1+
autocmd CmdUndefined CheckHealth checkhealth

0 commit comments

Comments
 (0)