Something went wrong. Try again.
🫦 Themes for (Neo)vim
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110local M = {}
function M.get() local virtual_text = O.lsp_styles.virtual_text local underlines = O.lsp_styles.underlines local inlay_hints = O.lsp_styles.inlay_hints
local error = C.error local warning = C.type local info = C.operator local hint = C.character local ok = C.string local darkening_percentage = 0.002
return { -- These groups are for the native LSP client. Some other LSP clients may -- use these groups, or use their own. Consult your LSP client's -- documentation. LspReferenceText = { bg = C.border }, -- used for highlighting "text" references LspReferenceRead = { bg = C.border }, -- used for highlighting "read" references LspReferenceWrite = { bg = C.border }, -- used for highlighting "write" references -- highlight diagnostics in numberline
DiagnosticVirtualTextError = { bg = C.border_subtle, fg = C.fg_primary, style = virtual_text.errors, }, -- Used as the bg_elevated highlight group. Other Diagnostic highlights link to this by default DiagnosticVirtualTextWarn = { bg = C.border_subtle, fg = C.fg_primary, style = virtual_text.warnings, }, -- Used as the bg_elevated highlight group. Other Diagnostic highlights link to this by default DiagnosticVirtualTextInfo = { bg = C.border_subtle, fg = C.fg_primary, style = virtual_text.information, }, -- Used as the bg_elevated highlight group. Other Diagnostic highlights link to this by default DiagnosticVirtualTextHint = { bg = C.border_subtle, fg = C.fg_primary, style = virtual_text.hints, }, -- Used as the bg_elevated highlight group. Other Diagnostic highlights link to this by default DiagnosticVirtualTextOk = { bg = C.border_subtle, fg = C.fg_primary, style = virtual_text.ok, }, -- Used as the bg_elevated highlight group. Other Diagnostic highlights link to this by default
DiagnosticError = { bg = C.none, fg = error, style = virtual_text.errors }, -- Used as the bg_elevated highlight group. Other Diagnostic highlights link to this by default DiagnosticWarn = { bg = C.none, fg = warning, style = virtual_text.warnings }, -- Used as the bg_elevated highlight group. Other Diagnostic highlights link to this by default DiagnosticInfo = { bg = C.none, fg = info, style = virtual_text.information }, -- Used as the bg_elevated highlight group. Other Diagnostic highlights link to this by default DiagnosticHint = { bg = C.none, fg = hint, style = virtual_text.hints }, -- Used as the bg_elevated highlight group. Other Diagnostic highlights link to this by default DiagnosticOk = { bg = C.none, fg = ok, style = virtual_text.ok }, -- Used as the bg_elevated highlight group. Other Diagnostic highlights link to this by default
DiagnosticUnderlineError = { style = underlines.errors, sp = error }, -- Used to underline "Error" diagnostics DiagnosticUnderlineWarn = { style = underlines.warnings, sp = warning }, -- Used to underline "Warn" diagnostics DiagnosticUnderlineInfo = { style = underlines.information, sp = info }, -- Used to underline "Info" diagnostics DiagnosticUnderlineHint = { style = underlines.hints, sp = hint }, -- Used to underline "Hint" diagnostics DiagnosticUnderlineOk = { style = underlines.ok, sp = ok }, -- Used to underline "Ok" diagnostics
DiagnosticFloatingError = { fg = error }, -- Used to color "Error" diagnostic messages in diagnostics float DiagnosticFloatingWarn = { fg = warning }, -- Used to color "Warn" diagnostic messages in diagnostics float DiagnosticFloatingInfo = { fg = info }, -- Used to color "Info" diagnostic messages in diagnostics float DiagnosticFloatingHint = { fg = hint }, -- Used to color "Hint" diagnostic messages in diagnostics float DiagnosticFloatingOk = { fg = ok }, -- Used to color "Ok" diagnostic messages in diagnostics float
DiagnosticSignError = { fg = error }, -- Used for "Error" signs in sign column DiagnosticSignWarn = { fg = warning }, -- Used for "Warn" signs in sign column DiagnosticSignInfo = { fg = info }, -- Used for "Info" signs in sign column DiagnosticSignHint = { fg = hint }, -- Used for "Hint" signs in sign column DiagnosticSignOk = { fg = ok }, -- Used for "Ok" signs in sign column
LspDiagnosticsDefaultError = { fg = error }, -- Used as the bg_elevated highlight group. Other LspDiagnostic highlights link to this by default (except Underline) LspDiagnosticsDefaultWarning = { fg = warning }, -- Used as the bg_elevated highlight group. Other LspDiagnostic highlights link to this by default (except Underline) LspDiagnosticsDefaultInformation = { fg = info }, -- Used as the bg_elevated highlight group. Other LspDiagnostic highlights link to this by default (except Underline) LspDiagnosticsDefaultHint = { fg = hint }, -- Used as the bg_elevated highlight group. Other LspDiagnostic highlights link to this by default (except Underline) LspSignatureActiveParameter = { bg = C.border_subtle, style = { "bold" } }, -- LspDiagnosticsFloatingError = { }, -- Used to color "Error" diagnostic messages in diagnostics float -- LspDiagnosticsFloatingWarning = { }, -- Used to color "Warning" diagnostic messages in diagnostics float -- LspDiagnosticsFloatingInformation = { }, -- Used to color "Information" diagnostic messages in diagnostics float -- LspDiagnosticsFloatingHint = { }, -- Used to color "Hint" diagnostic messages in diagnostics float
LspDiagnosticsError = { fg = error }, LspDiagnosticsWarning = { fg = warning }, LspDiagnosticsInformation = { fg = info }, LspDiagnosticsHint = { fg = hint }, LspDiagnosticsVirtualTextError = { fg = error, style = virtual_text.errors }, -- Used for "Error" diagnostic virtual text LspDiagnosticsVirtualTextWarning = { fg = warning, style = virtual_text.warnings }, -- Used for "Warning" diagnostic virtual text LspDiagnosticsVirtualTextInformation = { fg = info, style = virtual_text.warnings }, -- Used for "Information" diagnostic virtual text LspDiagnosticsVirtualTextHint = { fg = hint, style = virtual_text.hints }, -- Used for "Hint" diagnostic virtual text LspDiagnosticsUnderlineError = { style = underlines.errors, sp = error }, -- Used to underline "Error" diagnostics LspDiagnosticsUnderlineWarning = { style = underlines.warnings, sp = warning }, -- Used to underline "Warning" diagnostics LspDiagnosticsUnderlineInformation = { style = underlines.information, sp = info }, -- Used to underline "Information" diagnostics LspDiagnosticsUnderlineHint = { style = underlines.hints, sp = hint }, -- Used to underline "Hint" diagnostics LspCodeLens = { fg = C.fg_nontext }, -- virtual text of the codelens LspCodeLensSeparator = { link = "LspCodeLens" }, -- virtual text of the codelens separators LspInlayHint = { -- fg of `Comment` fg = C.fg_nontext, -- bg of `CursorLine` bg = (O.transparent_background or not inlay_hints.background) and C.none or U.vary_color({ latte = U.lighten(C.bg_elevated, 0.70, C.bg_primary) }, U.darken(C.border_subtle, 0.64, C.bg_primary)), }, -- virtual text of the inlay hints LspInfoBorder = { link = "FloatBorder" }, -- LspInfo border }end
return M