mirror of
https://github.com/neovim/neovim.git
synced 2025-11-12 05:18:52 +00:00
health.vim: Set 'iskeyword' to that of ft=help.
This commit is contained in:
@@ -33,7 +33,7 @@ function! health#check(plugin_names) abort
|
|||||||
setlocal wrap breakindent
|
setlocal wrap breakindent
|
||||||
setlocal filetype=markdown
|
setlocal filetype=markdown
|
||||||
setlocal conceallevel=2 concealcursor=nc
|
setlocal conceallevel=2 concealcursor=nc
|
||||||
setlocal keywordprg=:help
|
setlocal keywordprg=:help iskeyword=@,48-57,_,192-255,-,#
|
||||||
call s:enhance_syntax()
|
call s:enhance_syntax()
|
||||||
|
|
||||||
if empty(healthchecks)
|
if empty(healthchecks)
|
||||||
@@ -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] ([^''"]+)[''"]?', '":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
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ function! s:check_clipboard() abort
|
|||||||
if empty(clipboard_tool)
|
if empty(clipboard_tool)
|
||||||
call health#report_warn(
|
call health#report_warn(
|
||||||
\ "No clipboard tool found. Clipboard registers will not work.",
|
\ "No clipboard tool found. Clipboard registers will not work.",
|
||||||
\ ['See ":help clipboard".'])
|
\ [':help clipboard'])
|
||||||
else
|
else
|
||||||
call health#report_ok('Clipboard tool found: '. clipboard_tool)
|
call health#report_ok('Clipboard tool found: '. clipboard_tool)
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ function! provider#clipboard#Executable() abort
|
|||||||
return 'win32yank'
|
return 'win32yank'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let s:err = 'clipboard: No clipboard tool available. See :help clipboard'
|
let s:err = 'clipboard: No clipboard tool available. :help clipboard'
|
||||||
return ''
|
return ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
" The Python provider uses a Python host to emulate an environment for running
|
" The Python provider uses a Python host to emulate an environment for running
|
||||||
" python-vim plugins. See ":help provider".
|
" python-vim plugins. :help provider
|
||||||
"
|
"
|
||||||
" Associating the plugin with the Python host is the first step because plugins
|
" Associating the plugin with the Python host is the first step because plugins
|
||||||
" will be passed as command-line arguments
|
" will be passed as command-line arguments
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
" The Python3 provider uses a Python3 host to emulate an environment for running
|
" The Python3 provider uses a Python3 host to emulate an environment for running
|
||||||
" python3 plugins. See ":help provider".
|
" python3 plugins. :help provider
|
||||||
"
|
"
|
||||||
" Associating the plugin with the Python3 host is the first step because
|
" Associating the plugin with the Python3 host is the first step because
|
||||||
" plugins will be passed as command-line arguments
|
" plugins will be passed as command-line arguments
|
||||||
|
|||||||
@@ -112,15 +112,14 @@ function! s:check_interpreter(prog, major_ver) abort
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if v:shell_error == 2
|
if v:shell_error == 2
|
||||||
return [0, prog_path . ' does not have the neovim module installed. '
|
return [0, prog_path.' does not have the "neovim" module. :help provider-python']
|
||||||
\ . 'See ":help provider-python".']
|
|
||||||
elseif v:shell_error == 127
|
elseif v:shell_error == 127
|
||||||
" This can happen with pyenv's shims.
|
" This can happen with pyenv's shims.
|
||||||
return [0, prog_path . ' does not exist: ' . prog_ver]
|
return [0, prog_path . ' does not exist: ' . prog_ver]
|
||||||
elseif v:shell_error
|
elseif v:shell_error
|
||||||
return [0, 'Checking ' . prog_path . ' caused an unknown error. '
|
return [0, 'Checking ' . prog_path . ' caused an unknown error. '
|
||||||
\ . '(' . v:shell_error . ', output: ' . prog_ver . ')'
|
\ . '(' . v:shell_error . ', output: ' . prog_ver . ')'
|
||||||
\ . ' Please report this at github.com/neovim/neovim.']
|
\ . ' Report this at https://github.com/neovim/neovim']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return [1, '']
|
return [1, '']
|
||||||
|
|||||||
Reference in New Issue
Block a user