mirror of
https://github.com/neovim/neovim.git
synced 2025-11-17 15:51:32 +00:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user