fix: added proper styles for diagnostic virtual text and underlines

This commit is contained in:
Folke Lemaitre 2021-10-21 10:25:26 +02:00
parent cd6f57c0a4
commit 53d0576d25
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040

View File

@ -163,6 +163,16 @@ function M.setup(config)
DiagnosticInfo = { fg = c.info }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default
DiagnosticHint = { fg = c.hint }, -- 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
DiagnosticUnderlineError = { style = "undercurl", sp = c.error }, -- Used to underline "Error" diagnostics
DiagnosticUnderlineWarn = { style = "undercurl", sp = c.warning }, -- Used to underline "Warning" diagnostics
DiagnosticUnderlineInfo = { style = "undercurl", sp = c.info }, -- Used to underline "Information" diagnostics
DiagnosticUnderlineHint = { style = "undercurl", sp = c.hint }, -- Used to underline "Hint" diagnostics
LspDiagnosticsDefaultError = { fg = c.error }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultWarning = { fg = c.warning }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultInformation = { fg = c.info }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
@ -347,10 +357,8 @@ function M.setup(config)
WhichKeyValue = { fg = c.dark5 },
-- LspSaga
DiagnosticError = { fg = c.error },
DiagnosticWarning = { fg = c.warning },
DiagnosticInformation = { fg = c.info },
DiagnosticHint = { fg = c.hint },
DiagnosticWarning = { link = "DiagnosticWarn" },
DiagnosticInformation = { link = "DiagnosticInfo" },
LspFloatWinNormal = { bg = c.bg_float },
LspFloatWinBorder = { fg = c.border_highlight },