aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-12-11 01:26:49 +0100
committerJustin M. Keyes <justinkz@gmail.com>2016-12-11 01:26:49 +0100
commit100a8d40dbc53d8b58404eab9e1ef7e192f5ebd8 (patch)
treefc16246e2e24afd10915eababdb0820530296f80
parentf344e40699e136a5185502ac661e64ec1b5f4184 (diff)
downloadrneovim-100a8d40dbc53d8b58404eab9e1ef7e192f5ebd8.tar.gz
rneovim-100a8d40dbc53d8b58404eab9e1ef7e192f5ebd8.tar.bz2
rneovim-100a8d40dbc53d8b58404eab9e1ef7e192f5ebd8.zip
CheckHealth: more precise check for sensible.vim
Closes #5751
-rw-r--r--runtime/autoload/health/nvim.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/autoload/health/nvim.vim b/runtime/autoload/health/nvim.vim
index ea87e4b3ac..85c17fa660 100644
--- a/runtime/autoload/health/nvim.vim
+++ b/runtime/autoload/health/nvim.vim
@@ -2,10 +2,10 @@ 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)
+ if !get(g:, 'loaded_sensible', 0)
call health#report_ok('no issues found')
else
+ let sensible_pi = globpath(&runtimepath, '**/sensible.vim', 1, 1)
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.",