runtime/autoload/health/*.vim: fix vint warning (#8048)

This commit is contained in:
Daniel Hahler 2018-02-22 02:30:39 +01:00 committed by Justin M. Keyes
parent 4a8f081971
commit c8074e3792
2 changed files with 5 additions and 5 deletions

View File

@ -7,12 +7,12 @@ function! s:check_config() abort
" If $VIM is empty we don't care. Else make sure it is valid. " If $VIM is empty we don't care. Else make sure it is valid.
if !empty($VIM) && !filereadable($VIM.'/runtime/doc/nvim.txt') if !empty($VIM) && !filereadable($VIM.'/runtime/doc/nvim.txt')
let ok = v:false let ok = v:false
call health#report_error("$VIM is invalid: ".$VIM) call health#report_error('$VIM is invalid: '.$VIM)
endif endif
if exists('$NVIM_TUI_ENABLE_CURSOR_SHAPE') if exists('$NVIM_TUI_ENABLE_CURSOR_SHAPE')
let ok = v:false let ok = v:false
call health#report_warn("$NVIM_TUI_ENABLE_CURSOR_SHAPE is ignored in Nvim 0.2+", call health#report_warn('$NVIM_TUI_ENABLE_CURSOR_SHAPE is ignored in Nvim 0.2+',
\ [ "Use the 'guicursor' option to configure cursor shape. :help 'guicursor'", \ [ "Use the 'guicursor' option to configure cursor shape. :help 'guicursor'",
\ 'https://github.com/neovim/neovim/wiki/Following-HEAD#20170402' ]) \ 'https://github.com/neovim/neovim/wiki/Following-HEAD#20170402' ])
endif endif
@ -100,8 +100,8 @@ function! s:check_performance() abort
else else
call health#report_info(buildtype) call health#report_info(buildtype)
call health#report_warn( call health#report_warn(
\ "Non-optimized build-type. Nvim will be slower.", \ 'Non-optimized build-type. Nvim will be slower.',
\ ["Install a different Nvim package, or rebuild with `CMAKE_BUILD_TYPE=RelWithDebInfo`.", \ ['Install a different Nvim package, or rebuild with `CMAKE_BUILD_TYPE=RelWithDebInfo`.',
\ s:suggest_faq]) \ s:suggest_faq])
endif endif
endfunction endfunction

View File

@ -457,7 +457,7 @@ function! s:check_ruby() abort
let host = provider#ruby#Detect() let host = provider#ruby#Detect()
if empty(host) if empty(host)
call health#report_warn("`neovim-ruby-host` not found.", call health#report_warn('`neovim-ruby-host` not found.',
\ ['Run `gem install neovim` to ensure the neovim RubyGem is installed.', \ ['Run `gem install neovim` to ensure the neovim RubyGem is installed.',
\ 'Run `gem environment` to ensure the gem bin directory is in $PATH.', \ 'Run `gem environment` to ensure the gem bin directory is in $PATH.',
\ 'If you are using rvm/rbenv/chruby, try "rehashing".', \ 'If you are using rvm/rbenv/chruby, try "rehashing".',