From 100a8d40dbc53d8b58404eab9e1ef7e192f5ebd8 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 11 Dec 2016 01:26:49 +0100 Subject: CheckHealth: more precise check for sensible.vim Closes #5751 --- runtime/autoload/health/nvim.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/autoload') 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.", -- cgit