mirror of
https://github.com/neovim/neovim.git
synced 2025-11-16 07:11:20 +00:00
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!
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user