CheckHealth: check for sensible.vim

This commit is contained in:
Justin M. Keyes 2016-10-28 05:07:51 +02:00
parent 90bf31c742
commit fb4d5b0516
2 changed files with 17 additions and 2 deletions

View File

@ -1,5 +1,18 @@
let s:suggest_faq = 'See https://github.com/neovim/neovim/wiki/FAQ'
function! s:check_config() abort
call health#report_start('Configuration')
let sensible_pi = globpath(&runtimepath, '**/sensible.vim', 1, 1)
if empty(sensible_pi)
call health#report_ok('no issues found')
else
call health#report_info("found sensible.vim plugin:\n".join(sensible_pi, "\n"))
call health#report_error("sensible.vim plugin is not needed; Nvim has the same defaults built-in."
\ ." Also, sensible.vim sets 'ttimeoutlen' to a sub-optimal value.",
\ ["Remove sensible.vim plugin, or wrap it in a `if !has('nvim')` check."])
endif
endfunction
" Load the remote plugin manifest file and check for unregistered plugins
function! s:check_rplugin_manifest() abort
call health#report_start('Remote Plugins')
@ -137,8 +150,9 @@ function! s:check_terminfo() abort
endfunction
function! health#nvim#check() abort
call s:check_rplugin_manifest()
call s:check_config()
call s:check_performance()
call s:check_tmux()
call s:check_rplugin_manifest()
call s:check_terminfo()
call s:check_tmux()
endfunction

View File

@ -108,6 +108,7 @@ Options:
'tabline' %@Func@foo%X can call any function on mouse-click
Variables:
|v:event|
|v:windowid| is always available (for use by external UIs)
Commands: