diff options
author | Ghjuvan Lacambre <code@lacamb.re> | 2020-04-29 16:53:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 16:53:13 +0200 |
commit | f9055c585f597fe4ea8ecb990927a2826234393c (patch) | |
tree | 12842c0e5f796ef886641f47352abc827b7e3dad /test/functional | |
parent | e9cc383614d449b7269632c991525db77c387154 (diff) | |
download | rneovim-f9055c585f597fe4ea8ecb990927a2826234393c.tar.gz rneovim-f9055c585f597fe4ea8ecb990927a2826234393c.tar.bz2 rneovim-f9055c585f597fe4ea8ecb990927a2826234393c.zip |
LSP: enable using different highlighting rules for LSP signs (#12176)
This commit creates 4 new highlight groups:
- LspDiagnosticsErrorSign
- LspDiagnosticsWarningSign
- LspDiagnosticsInformationSign
- LspDiagnosticsHintSign
These highlight groups are linked to their corresponding LspDiagnostics
highlight groups by default.
This lets users choose a different color for their sign columns and
virtualtext diagnostics.
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/plugin/lsp_spec.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua index e53fb5b9e2..b73da12ae8 100644 --- a/test/functional/plugin/lsp_spec.lua +++ b/test/functional/plugin/lsp_spec.lua @@ -754,14 +754,18 @@ describe('LSP', function() it('highlight groups', function() eq({'LspDiagnosticsError', + 'LspDiagnosticsErrorSign', 'LspDiagnosticsHint', + 'LspDiagnosticsHintSign', 'LspDiagnosticsInformation', + 'LspDiagnosticsInformationSign', 'LspDiagnosticsUnderline', 'LspDiagnosticsUnderlineError', 'LspDiagnosticsUnderlineHint', 'LspDiagnosticsUnderlineInformation', 'LspDiagnosticsUnderlineWarning', 'LspDiagnosticsWarning', + 'LspDiagnosticsWarningSign', }, exec_lua([[require'vim.lsp'; return vim.fn.getcompletion('Lsp', 'highlight')]])) end) |