aboutsummaryrefslogtreecommitdiff
path: root/runtime/plugin
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-12-27 13:00:58 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-12-27 13:00:58 +0100
commit341102fe9f26e3f4207f14e097348d3bd6831b0d (patch)
tree3b23d8f492401e117ccc8a7c050b9175ac627461 /runtime/plugin
parent102e0689d8a11a6085c0856fcb1bfdb529c55e46 (diff)
downloadrneovim-341102fe9f26e3f4207f14e097348d3bd6831b0d.tar.gz
rneovim-341102fe9f26e3f4207f14e097348d3bd6831b0d.tar.bz2
rneovim-341102fe9f26e3f4207f14e097348d3bd6831b0d.zip
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.
Diffstat (limited to 'runtime/plugin')
-rw-r--r--runtime/plugin/health.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/runtime/plugin/health.vim b/runtime/plugin/health.vim
index e3482cb0fe..66ae8fb239 100644
--- a/runtime/plugin/health.vim
+++ b/runtime/plugin/health.vim
@@ -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