diff options
author | Oliver Marriott <rktjmp@users.noreply.github.com> | 2022-12-29 03:01:40 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-28 09:01:40 -0700 |
commit | e6cae44cbf44d623bc89eb3323da043249c0f052 (patch) | |
tree | 76171dd0aaf97e233a5ecfb2b875725313264f41 /test/functional/lua/diagnostic_spec.lua | |
parent | ab11157808955c40880cc0efb05d2aa5a21c897a (diff) | |
download | rneovim-e6cae44cbf44d623bc89eb3323da043249c0f052.tar.gz rneovim-e6cae44cbf44d623bc89eb3323da043249c0f052.tar.bz2 rneovim-e6cae44cbf44d623bc89eb3323da043249c0f052.zip |
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.
Diffstat (limited to 'test/functional/lua/diagnostic_spec.lua')
-rw-r--r-- | test/functional/lua/diagnostic_spec.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/lua/diagnostic_spec.lua b/test/functional/lua/diagnostic_spec.lua index 4e80231747..946994fd97 100644 --- a/test/functional/lua/diagnostic_spec.lua +++ b/test/functional/lua/diagnostic_spec.lua @@ -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')]])) |