diff options
Diffstat (limited to 'runtime/autoload')
-rw-r--r-- | runtime/autoload/health/nvim.vim | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/runtime/autoload/health/nvim.vim b/runtime/autoload/health/nvim.vim index 8c4034eab6..a5c095bcba 100644 --- a/runtime/autoload/health/nvim.vim +++ b/runtime/autoload/health/nvim.vim @@ -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 |