mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
4d2373f5f6
- 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.
26 lines
646 B
VimL
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"
|