aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/autoload/health/nvim.vim18
-rw-r--r--runtime/doc/vim_diff.txt1
2 files changed, 17 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
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index b4df069f21..f1adffc30e 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -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: