mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
feat(highlight): add DiagnosticOk (and associated) highlight groups (#21286)
The existing groups, Error, Hint, Info, Warn cover many use cases, but neglect the occasion where a diagnostic message should communicate a non-informative (not a Hint or Info) event. DiagnosticOk covers this with a generic green colorscheme.
This commit is contained in:
@@ -192,22 +192,27 @@ static const char *highlight_init_both[] = {
|
||||
"default DiagnosticWarn ctermfg=3 guifg=Orange",
|
||||
"default DiagnosticInfo ctermfg=4 guifg=LightBlue",
|
||||
"default DiagnosticHint ctermfg=7 guifg=LightGrey",
|
||||
"default DiagnosticOk ctermfg=10 guifg=LightGreen",
|
||||
"default DiagnosticUnderlineError cterm=underline gui=underline guisp=Red",
|
||||
"default DiagnosticUnderlineWarn cterm=underline gui=underline guisp=Orange",
|
||||
"default DiagnosticUnderlineInfo cterm=underline gui=underline guisp=LightBlue",
|
||||
"default DiagnosticUnderlineHint cterm=underline gui=underline guisp=LightGrey",
|
||||
"default DiagnosticUnderlineOk cterm=underline gui=underline guisp=LightGreen",
|
||||
"default link DiagnosticVirtualTextError DiagnosticError",
|
||||
"default link DiagnosticVirtualTextWarn DiagnosticWarn",
|
||||
"default link DiagnosticVirtualTextInfo DiagnosticInfo",
|
||||
"default link DiagnosticVirtualTextHint DiagnosticHint",
|
||||
"default link DiagnosticVirtualTextOk DiagnosticOk",
|
||||
"default link DiagnosticFloatingError DiagnosticError",
|
||||
"default link DiagnosticFloatingWarn DiagnosticWarn",
|
||||
"default link DiagnosticFloatingInfo DiagnosticInfo",
|
||||
"default link DiagnosticFloatingHint DiagnosticHint",
|
||||
"default link DiagnosticFloatingOk DiagnosticOk",
|
||||
"default link DiagnosticSignError DiagnosticError",
|
||||
"default link DiagnosticSignWarn DiagnosticWarn",
|
||||
"default link DiagnosticSignInfo DiagnosticInfo",
|
||||
"default link DiagnosticSignHint DiagnosticHint",
|
||||
"default link DiagnosticSignOk DiagnosticOk",
|
||||
|
||||
// Text
|
||||
"default link @text.literal Comment",
|
||||
|
Reference in New Issue
Block a user