summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-15 00:48:51 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-15 00:48:51 +0200
commit158714f59da169fa3edd0951270cb24767604eef (patch)
tree4bec13ac85123b385ea908e5ae8b9f254eb420a8
parent4d2e3a9b96e5dd91d518e9a13d3f533944c402d2 (diff)
Add link field and remove undercurl from all but error
-rw-r--r--lua/no-clown-fiesta/highlight-group/lsp.lua25
-rw-r--r--lua/no-clown-fiesta/util.lua2
2 files changed, 15 insertions, 12 deletions
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" },
diff --git a/lua/no-clown-fiesta/util.lua b/lua/no-clown-fiesta/util.lua
index 4db151c..1591a63 100644
--- a/lua/no-clown-fiesta/util.lua
+++ b/lua/no-clown-fiesta/util.lua
@@ -5,6 +5,7 @@ local function highlight(group, properties)
local fg = properties.fg == nil and "" or "guifg=" .. properties.fg
local sp = properties.sp == nil and "" or "guisp=" .. properties.sp
local style = properties.style == nil and "" or "gui=" .. properties.style
+ local link = properties.link == nil and "" or "link=" .. properties.link
local cmd = table.concat({
"highlight",
@@ -13,6 +14,7 @@ local function highlight(group, properties)
fg,
sp,
style,
+ link,
}, " ")
vim.api.nvim_command(cmd)