aboutsummaryrefslogtreecommitdiff
path: root/runtime/plugin/health.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-12-27 19:30:16 +0100
committerGitHub <noreply@github.com>2017-12-27 19:30:16 +0100
commit061b942dc07c5e63186b02fa2c89ae22881fbbdf (patch)
treec1ce218de5e4a242ec58fd0bf1e6f07a1eb35bf9 /runtime/plugin/health.vim
parent102e0689d8a11a6085c0856fcb1bfdb529c55e46 (diff)
parent2f3e00171749c5fddc2b76d080d2bb26f1765405 (diff)
downloadrneovim-061b942dc07c5e63186b02fa2c89ae22881fbbdf.tar.gz
rneovim-061b942dc07c5e63186b02fa2c89ae22881fbbdf.tar.bz2
rneovim-061b942dc07c5e63186b02fa2c89ae22881fbbdf.zip
Merge #7771
health.vim: remove :CheckHealth command
Diffstat (limited to 'runtime/plugin/health.vim')
-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