LSP: highlight groups test, doc

This commit is contained in:
Justin M. Keyes
2020-01-08 09:46:25 -08:00
parent 8c8681d594
commit 0a1c6d9a37
3 changed files with 53 additions and 20 deletions

View File

@@ -549,7 +549,9 @@ do
local underline_highlight_name = "LspDiagnosticsUnderline"
vim.cmd(string.format("highlight default %s gui=underline cterm=underline", underline_highlight_name))
for kind, _ in pairs(protocol.DiagnosticSeverity) do
vim.cmd(string.format("highlight default link %s%s %s", underline_highlight_name, kind, underline_highlight_name))
if type(kind) == 'string' then
vim.cmd(string.format("highlight default link %s%s %s", underline_highlight_name, kind, underline_highlight_name))
end
end
local severity_highlights = {}