mirror of
https://github.com/neovim/neovim.git
synced 2025-12-10 16:42:42 +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:
@@ -90,20 +90,25 @@ describe('vim.diagnostic', function()
|
||||
'DiagnosticFloatingError',
|
||||
'DiagnosticFloatingHint',
|
||||
'DiagnosticFloatingInfo',
|
||||
'DiagnosticFloatingOk',
|
||||
'DiagnosticFloatingWarn',
|
||||
'DiagnosticHint',
|
||||
'DiagnosticInfo',
|
||||
'DiagnosticOk',
|
||||
'DiagnosticSignError',
|
||||
'DiagnosticSignHint',
|
||||
'DiagnosticSignInfo',
|
||||
'DiagnosticSignOk',
|
||||
'DiagnosticSignWarn',
|
||||
'DiagnosticUnderlineError',
|
||||
'DiagnosticUnderlineHint',
|
||||
'DiagnosticUnderlineInfo',
|
||||
'DiagnosticUnderlineOk',
|
||||
'DiagnosticUnderlineWarn',
|
||||
'DiagnosticVirtualTextError',
|
||||
'DiagnosticVirtualTextHint',
|
||||
'DiagnosticVirtualTextInfo',
|
||||
'DiagnosticVirtualTextOk',
|
||||
'DiagnosticVirtualTextWarn',
|
||||
'DiagnosticWarn',
|
||||
}, exec_lua([[return vim.fn.getcompletion('Diagnostic', 'highlight')]]))
|
||||
|
||||
Reference in New Issue
Block a user