diff --git a/lua/catppuccino/color_schemes/catppuccino.lua b/lua/catppuccino/color_schemes/catppuccino.lua index 212b838..065ef44 100644 --- a/lua/catppuccino/color_schemes/catppuccino.lua +++ b/lua/catppuccino/color_schemes/catppuccino.lua @@ -24,7 +24,7 @@ local colors = { blue_br = "#84CEE4", magenta_br = "#B8A1E3", cyan_br = "#59F0FF", - white_br = "#fef6e3", + white_br = "#FDEBC3", orange_br = "#F6A878", pink_br = "#DF97DB", comment = "#526175", @@ -80,10 +80,10 @@ colors.bg_visual = util.darken(colors.blue, 0.2) colors.bg_search = util.darken(colors.cyan, 0.3) colors.fg_sidebar = colors.fg_alt -colors.error = colors.red +colors.error = colors.red_bg colors.warning = colors.yellow colors.info = colors.blue -colors.hint = colors.cyan +colors.hint = colors.white_br colors.variable = colors.white diff --git a/lua/catppuccino/config.lua b/lua/catppuccino/config.lua index 365e283..89a606a 100644 --- a/lua/catppuccino/config.lua +++ b/lua/catppuccino/config.lua @@ -13,7 +13,15 @@ config.options = { }, integrations = { treesitter = true, - native_lsp = true, + native_lsp = { + enabled = true, + styles = { + errors = "italic", + hints = "italic", + warnings = "italic", + information = "italic" + } + }, lsp_trouble = false, illuminate = false, diff = false, diff --git a/lua/catppuccino/core/mapper.lua b/lua/catppuccino/core/mapper.lua index 805d915..4534390 100644 --- a/lua/catppuccino/core/mapper.lua +++ b/lua/catppuccino/core/mapper.lua @@ -137,31 +137,38 @@ function M.apply() -- 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 = t.fg_gutter}, -- used for highlighting "text" references - LspReferenceRead = {bg = t.fg_gutter}, -- used for highlighting "read" references - LspReferenceWrite = {bg = t.fg_gutter}, -- used for highlighting "write" references - LspDiagnosticsDefaultError = {fg = t.error}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) - LspDiagnosticsDefaultWarning = {fg = t.warning}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) - LspDiagnosticsDefaultInformation = {fg = t.info}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) - LspDiagnosticsDefaultHint = {fg = t.hint}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) - LspDiagnosticsVirtualTextError = {bg = util.darken(t.error, 0.1), fg = t.error}, -- Used for "Error" diagnostic virtual text - LspDiagnosticsVirtualTextWarning = {bg = util.darken(t.warning, 0.1), fg = t.warning}, -- Used for "Warning" diagnostic virtual text - LspDiagnosticsVirtualTextInformation = {bg = util.darken(t.info, 0.1), fg = t.info}, -- Used for "Information" diagnostic virtual text - LspDiagnosticsVirtualTextHint = {bg = util.darken(t.hint, 0.1), fg = t.hint}, -- Used for "Hint" diagnostic virtual text - LspDiagnosticsUnderlineError = {style = "undercurl", sp = t.error}, -- Used to underline "Error" diagnostics - LspDiagnosticsUnderlineWarning = {style = "undercurl", sp = t.warning}, -- Used to underline "Warning" diagnostics - LspDiagnosticsUnderlineInformation = {style = "undercurl", sp = t.info}, -- Used to underline "Information" diagnostics - LspDiagnosticsUnderlineHint = {style = "undercurl", sp = t.hint}, -- Used to underline "Hint" diagnostics - LspSignatureActiveParameter = {fg = t.orange}, + -- LspReferenceText = {bg = t.fg_gutter}, -- used for highlighting "text" references + -- LspReferenceRead = {bg = t.fg_gutter}, -- used for highlighting "read" references + -- LspReferenceWrite = {bg = t.fg_gutter}, -- used for highlighting "write" references + -- LspDiagnosticsDefaultError = {fg = t.error}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) + -- LspDiagnosticsDefaultWarning = {fg = t.warning}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) + -- LspDiagnosticsDefaultInformation = {fg = t.info}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) + -- LspDiagnosticsDefaultHint = {fg = t.hint}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) + -- LspSignatureActiveParameter = {fg = t.orange}, -- 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 - -- LspDiagnosticsSignError = { }, -- Used for "Error" signs in sign column - -- LspDiagnosticsSignWarning = { }, -- Used for "Warning" signs in sign column - -- LspDiagnosticsSignInformation = { }, -- Used for "Information" signs in sign column - -- LspDiagnosticsSignHint = { }, -- Used for "Hint" signs in sign column + LspDiagnosticsError = {fg = t.error}, + LspDiagnosticsWarning = {fg = t.warning}, + LspDiagnosticsInformation = {fg = t.info}, + LspDiagnosticsHint = {fg = t.hint}, + + LspDiagnosticsVirtualTextError = {fg = t.error, style = opts.styles.fuctions}, -- Used for "Error" diagnostic virtual text + LspDiagnosticsVirtualTextWarning = {fg = t.warning, style = opts.styles.fuctions}, -- Used for "Warning" diagnostic virtual text + LspDiagnosticsVirtualTextInformation = {fg = t.info, style = opts.styles.fuctions}, -- Used for "Information" diagnostic virtual text + LspDiagnosticsVirtualTextHint = {fg = t.hint, style = opts.styles.fuctions}, -- Used for "Hint" diagnostic virtual text + + -- LspDiagnosticsUnderlineError = {style = "undercurl", sp = t.error}, -- Used to underline "Error" diagnostics + -- LspDiagnosticsUnderlineWarning = {style = "undercurl", sp = t.warning}, -- Used to underline "Warning" diagnostics + -- LspDiagnosticsUnderlineInformation = {style = "undercurl", sp = t.info}, -- Used to underline "Information" diagnostics + LspDiagnosticsUnderlineHint = {style = "undercurl", sp = t.hint}, -- Used to underline "Hint" diagnostics + + -- LspDiagnosticsVirtualTextError = {bg = util.darken(t.error, 0.1), fg = t.error}, -- Used for "Error" diagnostic virtual text + -- LspDiagnosticsVirtualTextWarning = {bg = util.darken(t.warning, 0.1), fg = t.warning}, -- Used for "Warning" diagnostic virtual text + -- LspDiagnosticsVirtualTextInformation = {bg = util.darken(t.info, 0.1), fg = t.info}, -- Used for "Information" diagnostic virtual text + -- LspDiagnosticsVirtualTextHint = {bg = util.darken(t.hint, 0.1), fg = t.hint}, -- Used for "Hint" diagnostic virtual text -- These groups are for the neovim tree-sitter highlights. -- As of writing, tree-sitter support is a WIP, group names may change. @@ -282,10 +289,6 @@ function M.apply() NvimTreeSpecialFile = {fg = t.cyan}, NvimTreeIndentMarker = {fg = t.fg_gutter}, NvimTreeImageFile = {fg = t.fg_sidebar}, - LspDiagnosticsError = {fg = t.error}, - LspDiagnosticsWarning = {fg = t.warning}, - LspDiagnosticsInformation = {fg = t.info}, - LspDiagnosticsHint = {fg = t.hint}, -- Fern FernBranchText = {fg = t.blue}, -- glyph palette