ex_checkhealth: call health#check() directly

This allows us to remove :CheckHealth later (avoids wildmenu noise).
This commit is contained in:
Justin M. Keyes
2017-10-16 00:05:35 +02:00
parent d5d7a9928d
commit 014bd59957
2 changed files with 6 additions and 3 deletions

View File

@@ -159,7 +159,10 @@ endfunction
" Translates a list of plugin names to healthcheck function names.
function! s:to_fn_names(plugin_names) abort
let healthchecks = []
for p in a:plugin_names
let plugin_names = type('') ==# type(a:plugin_names)
\ ? split(a:plugin_names, '', v:false)
\ : a:plugin_names
for p in plugin_names
call add(healthchecks, 'health#'.p.'#check')
endfor
return healthchecks