From 158714f59da169fa3edd0951270cb24767604eef Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 15 Oct 2022 00:48:51 +0200 Subject: Add link field and remove undercurl from all but error --- lua/no-clown-fiesta/highlight-group/lsp.lua | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'lua/no-clown-fiesta/highlight-group') diff --git a/lua/no-clown-fiesta/highlight-group/lsp.lua b/lua/no-clown-fiesta/highlight-group/lsp.lua index 9f1e263..ab880b9 100644 --- a/lua/no-clown-fiesta/highlight-group/lsp.lua +++ b/lua/no-clown-fiesta/highlight-group/lsp.lua @@ -33,26 +33,27 @@ function M.highlight(palette) LspDiagnosticsInfo = { fg = palette.info_yellow }, LspDiagnosticsHint = { fg = palette.hint_blue }, LspDiagnosticsUnderlineError = { - sp = palette.error_red, - style = "undercurl", + link = "DiagnosticUnderlineError", }, LspDiagnosticsUnderlineWarning = { - sp = palette.warning_orange, - style = "undercurl", + link = "DiagnosticUnderlineWarn", }, LspDiagnosticsUnderlineInformation = { - sp = palette.hint_blue, - style = "undercurl", + link = "DiagnosticUnderlineInfo", + }, + LspDiagnosticsUnderlineInfo = { + link = "DiagnosticUnderlineInfo", + }, + LspDiagnosticsUnderlineHint = { + link = "DiagnosticUnderlineHint", }, - LspDiagnosticsUnderlineInfo = { sp = palette.hint_blue, style = "undercurl" }, - LspDiagnosticsUnderlineHint = { sp = palette.hint_blue, style = "undercurl" }, DiagnosticUnderlineError = { sp = palette.error_red, - style = "underline", + style = "undercurl", }, - DiagnosticUnderlineWarn = { sp = palette.warning_orange, style = "undercurl" }, - DiagnosticUnderlineInfo = { sp = palette.hint_blue, style = "undercurl" }, - DiagnosticUnderlineHint = { sp = palette.hint_blue, style = "undercurl" }, + DiagnosticUnderlineWarn = { sp = palette.warning_orange, style = "NONE" }, + DiagnosticUnderlineInfo = { sp = palette.hint_blue, style = "NONE" }, + DiagnosticUnderlineHint = { sp = palette.hint_blue, style = "NONE" }, LspReferenceRead = { bg = "#36383F" }, LspReferenceText = { bg = "#36383F" }, LspReferenceWrite = { bg = "#36383f" }, -- cgit v1.2.3-70-g09d2