From 4a21d1cee7db056a2471fa873fa99f333fc1beab Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sat, 16 Mar 2024 15:21:39 -0400 Subject: [PATCH] nvim: swap more underlines and undercurls in theme --- src/.config/nvim/lua/init.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/.config/nvim/lua/init.lua b/src/.config/nvim/lua/init.lua index e1b9f54..776034c 100644 --- a/src/.config/nvim/lua/init.lua +++ b/src/.config/nvim/lua/init.lua @@ -82,6 +82,17 @@ Group.link("@type.qualifier", groups["keyword.return"]) Group.new("NormalFloat", colors.noir_1, colors.noir_9, no) +-- swap undercurls and underlines +for _, v in ipairs({"Error", "Info", "Hint", "Warn"}) do + col_name = "diagnostic_" .. string.lower(v) + if v == "Warn" then + col_name = "diagnostic_warning" + end + + Group.new("Diagnostic" .. v, colors[col_name], nil, styles.underline) + Group.new("DiagnosticUnderline" .. v, colors[col_name], nil, styles.undercurl) +end + -------------------------------- -------------------------------- -- imports (see .config/nvim/lua/)