Files
lavender-dimmed.nvim/lua/lavender-dimmed/groups/lsp.lua
T

81 lines
3.1 KiB
Lua
Raw Normal View History

2026-06-30 15:07:14 -05:00
local function get(p)
return {
DiagnosticError = { fg = p.coral },
DiagnosticWarn = { fg = p.gold },
DiagnosticInfo = { fg = p.lavender },
DiagnosticHint = { fg = p.fg_muted },
DiagnosticOk = { fg = p.teal },
DiagnosticVirtualTextError = { fg = p.coral },
DiagnosticVirtualTextWarn = { fg = p.gold },
DiagnosticVirtualTextInfo = { fg = p.lavender },
DiagnosticVirtualTextHint = { fg = p.fg_muted },
DiagnosticVirtualTextOk = { fg = p.teal },
DiagnosticUnderlineError = { sp = p.coral, undercurl = true },
DiagnosticUnderlineWarn = { sp = p.gold, undercurl = true },
DiagnosticUnderlineInfo = { sp = p.lavender, undercurl = true },
DiagnosticUnderlineHint = { sp = p.fg_muted, undercurl = true },
DiagnosticUnderlineOk = { sp = p.teal, undercurl = true },
DiagnosticFloatingError = { fg = p.coral },
DiagnosticFloatingWarn = { fg = p.gold },
DiagnosticFloatingInfo = { fg = p.lavender },
DiagnosticFloatingHint = { fg = p.fg_muted },
DiagnosticSignError = { fg = p.coral },
DiagnosticSignWarn = { fg = p.gold },
DiagnosticSignInfo = { fg = p.lavender },
DiagnosticSignHint = { fg = p.fg_muted },
DiagnosticSignOk = { fg = p.teal },
DiagnosticDeprecated = { sp = p.coral, strikethrough = true },
DiagnosticUnnecessary = { fg = p.fg_muted2 },
LspReferenceText = { bg = p.accent_subtle },
LspReferenceRead = { bg = p.accent_subtle },
LspReferenceWrite = { bg = p.accent_subtle },
LspSignatureActiveParameter = { fg = p.gold, bold = true },
LspInlayHint = { fg = p.fg_muted2, bg = p.bg_highlight },
LspCodeLens = { fg = p.fg_muted },
LspCodeLensSeparator = { fg = p.fg_muted },
LspInfoBorder = { fg = p.lavender },
-- Legacy LSP diagnostic groups
LspDiagnosticsDefaultError = { fg = p.coral },
LspDiagnosticsDefaultWarning = { fg = p.gold },
LspDiagnosticsDefaultInformation = { fg = p.lavender },
LspDiagnosticsDefaultHint = { fg = p.fg_muted },
LspDiagnosticsDefaultOk = { fg = p.teal },
LspDiagnosticsVirtualTextError = { fg = p.coral },
LspDiagnosticsVirtualTextWarning = { fg = p.gold },
LspDiagnosticsVirtualTextInformation = { fg = p.lavender },
LspDiagnosticsVirtualTextHint = { fg = p.fg_muted },
LspDiagnosticsUnderlineError = { sp = p.coral, undercurl = true },
LspDiagnosticsUnderlineWarning = { sp = p.gold, undercurl = true },
LspDiagnosticsUnderlineInformation = { sp = p.lavender, undercurl = true },
LspDiagnosticsUnderlineHint = { sp = p.fg_muted, undercurl = true },
LspDiagnosticsFloatingError = { fg = p.coral },
LspDiagnosticsFloatingWarning = { fg = p.gold },
LspDiagnosticsFloatingInformation = { fg = p.lavender },
LspDiagnosticsFloatingHint = { fg = p.fg_muted },
LspDiagnosticsSignError = { fg = p.coral },
LspDiagnosticsSignWarning = { fg = p.gold },
LspDiagnosticsSignInformation = { fg = p.lavender },
LspDiagnosticsSignHint = { fg = p.fg_muted },
-- Terminal colors
Terminal = { bg = p.bg },
healthError = { fg = p.coral },
healthSuccess = { fg = p.teal },
healthWarning = { fg = p.gold },
}
end
return { get = get }