Tweak diagnostic virtual text background

This commit is contained in:
2023-12-01 15:30:50 -05:00
parent 58731a63a8
commit ffd6953047

View File

@@ -184,10 +184,10 @@ function M.setup()
DiagnosticHint = { fg = c.hint }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default
DiagnosticUnnecessary = { fg = c.terminal_black }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default
DiagnosticVirtualTextError = { bg = util.darken(c.error, 0.1), fg = c.error }, -- Used for "Error" diagnostic virtual text
DiagnosticVirtualTextWarn = { bg = util.darken(c.warning, 0.1), fg = c.warning }, -- Used for "Warning" diagnostic virtual text
DiagnosticVirtualTextInfo = { bg = util.darken(c.info, 0.1), fg = c.info }, -- Used for "Information" diagnostic virtual text
DiagnosticVirtualTextHint = { bg = util.darken(c.hint, 0.1), fg = c.hint }, -- Used for "Hint" diagnostic virtual text
DiagnosticVirtualTextError = { bg = util.darken(c.error, 0.05), fg = c.error }, -- Used for "Error" diagnostic virtual text
DiagnosticVirtualTextWarn = { bg = util.darken(c.warning, 0.05), fg = c.warning }, -- Used for "Warning" diagnostic virtual text
DiagnosticVirtualTextInfo = { bg = util.darken(c.info, 0.05), fg = c.info }, -- Used for "Information" diagnostic virtual text
DiagnosticVirtualTextHint = { bg = util.darken(c.hint, 0.05), fg = c.hint }, -- Used for "Hint" diagnostic virtual text
DiagnosticUnderlineError = { undercurl = true, sp = c.error }, -- Used to underline "Error" diagnostics
DiagnosticUnderlineWarn = { undercurl = true, sp = c.warning }, -- Used to underline "Warning" diagnostics