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/syntax | |
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/syntax')
-rw-r--r-- | runtime/syntax/checkhealth.vim | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/runtime/syntax/checkhealth.vim b/runtime/syntax/checkhealth.vim index 37f1822740..4b0ce75a54 100644 --- a/runtime/syntax/checkhealth.vim +++ b/runtime/syntax/checkhealth.vim @@ -1,26 +1,21 @@ " Vim syntax file -" Language: Neovim checkhealth buffer -" Last Change: 2021 Dec 15 +" Language: Nvim :checkhealth buffer +" Last Change: 2022 Nov 10 if exists("b:current_syntax") finish endif -runtime! syntax/markdown.vim +runtime! syntax/help.vim unlet! b:current_syntax syn case match -" We do not care about markdown syntax errors -if hlexists('markdownError') - syn clear markdownError -endif - -syn keyword healthError ERROR[:] containedin=markdownCodeBlock,mkdListItemLine -syn keyword healthWarning WARNING[:] containedin=markdownCodeBlock,mkdListItemLine -syn keyword healthSuccess OK[:] containedin=markdownCodeBlock,mkdListItemLine -syn match healthHelp "|.\{-}|" containedin=markdownCodeBlock,mkdListItemLine contains=healthBar -syn match healthBar "|" contained conceal +syn keyword healthError ERROR[:] +syn keyword healthWarning WARNING[:] +syn keyword healthSuccess OK[:] +syn match helpSectionDelim "^======*\n.*$" +syn match healthHeadingChar "=" conceal cchar=─ contained containedin=helpSectionDelim hi def link healthError Error hi def link healthWarning WarningMsg |