diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2022-11-11 21:33:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 18:33:31 -0800 |
commit | 4d2373f5f6570fcc851b818198f45fbda391fd6a (patch) | |
tree | 07dfe76d60f55eaa7dfe18c4bdbd61fcee709f17 /runtime/ftplugin | |
parent | 2425fe2dc5e5985779912319433ddf914a20dd6a (diff) | |
download | rneovim-4d2373f5f6570fcc851b818198f45fbda391fd6a.tar.gz rneovim-4d2373f5f6570fcc851b818198f45fbda391fd6a.tar.bz2 rneovim-4d2373f5f6570fcc851b818198f45fbda391fd6a.zip |
feat(checkhealth): use "help" syntax, avoid tabpage #20879
- If Nvim was just started, don't create a new tab.
- Name the buffer "health://".
- Use "help" syntax instead of "markdown". It fits better, and
eliminates various workarounds.
- Simplfy formatting, avoid visual noise.
- Don't print a "INFO" status, it is noisy.
- Drop the ":" after statuses, they are already UPPERCASE and highlighted.
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r-- | runtime/ftplugin/checkhealth.vim | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/runtime/ftplugin/checkhealth.vim b/runtime/ftplugin/checkhealth.vim index 3d8e9ace1a..62a1970b4a 100644 --- a/runtime/ftplugin/checkhealth.vim +++ b/runtime/ftplugin/checkhealth.vim @@ -1,20 +1,18 @@ " Vim filetype plugin -" Language: Neovim checkhealth buffer -" Last Change: 2021 Dec 15 +" Language: Nvim :checkhealth buffer +" Last Change: 2022 Nov 10 if exists("b:did_ftplugin") finish endif -runtime! ftplugin/markdown.vim ftplugin/markdown_*.vim ftplugin/markdown/*.vim +runtime! ftplugin/help.vim setlocal wrap breakindent linebreak -setlocal conceallevel=2 concealcursor=nc -setlocal keywordprg=:help let &l:iskeyword='!-~,^*,^|,^",192-255' if exists("b:undo_ftplugin") - let b:undo_ftplugin .= "|setl wrap< bri< lbr< cole< cocu< kp< isk<" + let b:undo_ftplugin .= "|setl wrap< bri< lbr< kp< isk<" else - let b:undo_ftplugin = "setl wrap< bri< lbr< cole< cocu< kp< isk<" + let b:undo_ftplugin = "setl wrap< bri< lbr< kp< isk<" endif |