neovim/runtime/syntax/checkhealth.vim
Justin M. Keyes 4d2373f5f6
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.
2022-11-11 18:33:31 -08:00

26 lines
646 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 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
hi def healthSuccess guibg=#5fff00 guifg=#080808 ctermbg=82 ctermfg=232
hi def link healthHelp Identifier
let b:current_syntax = "checkhealth"