Skip to content

Commit

Permalink
CheckHealth: check for sensible.vim
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmk committed Oct 28, 2016
1 parent 90bf31c commit fb4d5b0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
18 changes: 16 additions & 2 deletions runtime/autoload/health/nvim.vim
Original file line number Diff line number Diff line change
@@ -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.",

This comment has been minimized.

Copy link
@tweekmonster

tweekmonster Oct 30, 2016

Contributor

The opportunity to use the word "insensible" was missed here ☹️

\ ["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')
Expand Down Expand Up @@ -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
1 change: 1 addition & 0 deletions runtime/doc/vim_diff.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fb4d5b0

Please sign in to comment.