diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-09-26 07:45:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-26 07:45:03 -0700 |
commit | f2fa4ca97ea3812dba78820323a1ccbf58921b40 (patch) | |
tree | 5e5e90585b06a4b774658da9b09307918c595418 /runtime/syntax | |
parent | efcfcb1efce04aeef85c69a9337f96ec76e78043 (diff) | |
download | rneovim-f2fa4ca97ea3812dba78820323a1ccbf58921b40.tar.gz rneovim-f2fa4ca97ea3812dba78820323a1ccbf58921b40.tar.bz2 rneovim-f2fa4ca97ea3812dba78820323a1ccbf58921b40.zip |
feat(health): highlight headings #30525
Problem:
checkhealth report sections are not visually separated.
Solution:
Highlight with "reverse".
TODO: migrate checkhealth filetype to use treesitter.
TODO: default :help should also highlight headings more boldy!
Diffstat (limited to 'runtime/syntax')
-rw-r--r-- | runtime/syntax/checkhealth.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/syntax/checkhealth.vim b/runtime/syntax/checkhealth.vim index 2fd0aed601..a4f6e016cb 100644 --- a/runtime/syntax/checkhealth.vim +++ b/runtime/syntax/checkhealth.vim @@ -14,7 +14,9 @@ syn case match syn keyword DiagnosticError ERROR[:] syn keyword DiagnosticWarn WARNING[:] syn keyword DiagnosticOk OK[:] -syn match helpSectionDelim "^======*\n.*$" -syn match healthHeadingChar "=" conceal cchar=─ contained containedin=helpSectionDelim +" Note: hs=e starts higlighting on the title line (instead of the "===" line). +syn match helpSectionDelim /^======*\n.*$/hs=e +highlight helpSectionDelim gui=reverse cterm=reverse +syn match healthHeadingChar "=" conceal cchar= contained containedin=helpSectionDelim let b:current_syntax = "checkhealth" |