mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
health.vim: 'guicursor' advice #6506
Also: - Mark provider sections as "(optional)". - Fix help-link substitution to support single-quoted tags.
This commit is contained in:
parent
15af803cce
commit
19646a2985
@ -88,7 +88,7 @@ endfunction
|
|||||||
|
|
||||||
" Changes ':h clipboard' to ':help |clipboard|'.
|
" Changes ':h clipboard' to ':help |clipboard|'.
|
||||||
function! s:help_to_link(s) abort
|
function! s:help_to_link(s) abort
|
||||||
return substitute(a:s, '\v:h%[elp] ([^|][^''"\r\n]+)', ':help |\1|', 'g')
|
return substitute(a:s, '\v:h%[elp] ([^|][^"\r\n]+)', ':help |\1|', 'g')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Format a message for a specific report item
|
" Format a message for a specific report item
|
||||||
|
@ -1,16 +1,28 @@
|
|||||||
let s:suggest_faq = 'See https://github.com/neovim/neovim/wiki/FAQ'
|
let s:suggest_faq = 'https://github.com/neovim/neovim/wiki/FAQ'
|
||||||
|
|
||||||
function! s:check_config() abort
|
function! s:check_config() abort
|
||||||
|
let ok = v:true
|
||||||
call health#report_start('Configuration')
|
call health#report_start('Configuration')
|
||||||
if !get(g:, 'loaded_sensible', 0)
|
|
||||||
call health#report_ok('no issues found')
|
if get(g:, 'loaded_sensible', 0)
|
||||||
else
|
let ok = v:false
|
||||||
let sensible_pi = globpath(&runtimepath, '**/sensible.vim', 1, 1)
|
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_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."
|
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.",
|
\ ." Also, sensible.vim sets 'ttimeoutlen' to a sub-optimal value.",
|
||||||
\ ["Remove sensible.vim plugin, or wrap it in a `if !has('nvim')` check."])
|
\ ["Remove sensible.vim plugin, or wrap it in a `if !has('nvim')` check."])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if exists('$NVIM_TUI_ENABLE_CURSOR_SHAPE')
|
||||||
|
let ok = v:false
|
||||||
|
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'",
|
||||||
|
\ 'https://github.com/neovim/neovim/wiki/Following-HEAD#20170402' ])
|
||||||
|
endif
|
||||||
|
|
||||||
|
if ok
|
||||||
|
call health#report_ok('no issues found')
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Load the remote plugin manifest file and check for unregistered plugins
|
" Load the remote plugin manifest file and check for unregistered plugins
|
||||||
|
@ -111,7 +111,7 @@ endfunction
|
|||||||
|
|
||||||
" Check for clipboard tools.
|
" Check for clipboard tools.
|
||||||
function! s:check_clipboard() abort
|
function! s:check_clipboard() abort
|
||||||
call health#report_start('Clipboard')
|
call health#report_start('Clipboard (optional)')
|
||||||
|
|
||||||
let clipboard_tool = provider#clipboard#Executable()
|
let clipboard_tool = provider#clipboard#Executable()
|
||||||
if empty(clipboard_tool)
|
if empty(clipboard_tool)
|
||||||
@ -224,7 +224,7 @@ function! s:check_bin(bin) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:check_python(version) abort
|
function! s:check_python(version) abort
|
||||||
call health#report_start('Python ' . a:version . ' provider')
|
call health#report_start('Python ' . a:version . ' provider (optional)')
|
||||||
|
|
||||||
let pyname = 'python'.(a:version == 2 ? '' : '3')
|
let pyname = 'python'.(a:version == 2 ? '' : '3')
|
||||||
let pyenv = resolve(exepath('pyenv'))
|
let pyenv = resolve(exepath('pyenv'))
|
||||||
@ -419,7 +419,7 @@ function! s:check_python(version) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:check_ruby() abort
|
function! s:check_ruby() abort
|
||||||
call health#report_start('Ruby provider')
|
call health#report_start('Ruby provider (optional)')
|
||||||
|
|
||||||
let loaded_var = 'g:loaded_ruby_provider'
|
let loaded_var = 'g:loaded_ruby_provider'
|
||||||
if exists(loaded_var) && !exists('*provider#ruby#Call')
|
if exists(loaded_var) && !exists('*provider#ruby#Call')
|
||||||
|
Loading…
Reference in New Issue
Block a user