mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
f2fa4ca97e
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!
23 lines
609 B
VimL
23 lines
609 B
VimL
" Vim syntax file
|
|
" Language: Nvim :checkhealth buffer
|
|
" Last Change: 2022 Nov 10
|
|
|
|
if exists("b:current_syntax")
|
|
finish
|
|
endif
|
|
|
|
runtime! syntax/help.vim
|
|
unlet! b:current_syntax
|
|
|
|
syn case match
|
|
|
|
syn keyword DiagnosticError ERROR[:]
|
|
syn keyword DiagnosticWarn WARNING[:]
|
|
syn keyword DiagnosticOk OK[:]
|
|
" 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"
|