mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
Health: show :help + tags (#5719)
This commit is contained in:
@@ -87,9 +87,9 @@ function! s:indent_after_line1(s, columns) abort
|
|||||||
return join(lines, "\n")
|
return join(lines, "\n")
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Changes ':help clipboard' to '|clipoard|'. Also removes surrounding quotes.
|
" 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] ([^''"]+)[''"]?', '|\1|', 'g')
|
return substitute(a:s, '\v[''"]?:h%[elp] ([^''"]+)[''"]?', '":help |\1|"', 'g')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Format a message for a specific report item
|
" Format a message for a specific report item
|
||||||
|
@@ -108,7 +108,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. Using the system clipboard won't work.",
|
\ "No clipboard tool found. Using the system clipboard won't work.",
|
||||||
\ ['See |clipboard|.'])
|
\ ['See ":help clipboard".'])
|
||||||
else
|
else
|
||||||
call health#report_ok('Clipboard tool found: '. clipboard_tool)
|
call health#report_ok('Clipboard tool found: '. clipboard_tool)
|
||||||
endif
|
endif
|
||||||
|
Reference in New Issue
Block a user