fix: removed remnants of cpt in favor of cp for simplification

dev-remaster
Pocco81 3 years ago
parent 0b177ad1cb
commit b8fa6ff5b1

@ -2,25 +2,25 @@ local util = require("catppuccino.utils.util")
local M = {} local M = {}
function M.get(cpt) function M.get(cp)
return { return {
BufferCurrent = { bg = cpt.fg_gutter, fg = cpt.fg }, BufferCurrent = { bg = cp.fg_gutter, fg = cp.fg },
BufferCurrentIndex = { bg = cpt.fg_gutter, fg = cpt.info }, BufferCurrentIndex = { bg = cp.fg_gutter, fg = cp.info },
BufferCurrentMod = { bg = cpt.fg_gutter, fg = cpt.warning }, BufferCurrentMod = { bg = cp.fg_gutter, fg = cp.warning },
BufferCurrentSign = { bg = cpt.fg_gutter, fg = cpt.info }, BufferCurrentSign = { bg = cp.fg_gutter, fg = cp.info },
BufferCurrentTarget = { bg = cpt.fg_gutter, fg = cpt.red }, BufferCurrentTarget = { bg = cp.fg_gutter, fg = cp.red },
BufferVisible = { bg = cpt.bg_statusline, fg = cpt.fg }, BufferVisible = { bg = cp.bg_statusline, fg = cp.fg },
BufferVisibleIndex = { bg = cpt.bg_statusline, fg = cpt.info }, BufferVisibleIndex = { bg = cp.bg_statusline, fg = cp.info },
BufferVisibleMod = { bg = cpt.bg_statusline, fg = cpt.warning }, BufferVisibleMod = { bg = cp.bg_statusline, fg = cp.warning },
BufferVisibleSign = { bg = cpt.bg_statusline, fg = cpt.info }, BufferVisibleSign = { bg = cp.bg_statusline, fg = cp.info },
BufferVisibleTarget = { bg = cpt.bg_statusline, fg = cpt.red }, BufferVisibleTarget = { bg = cp.bg_statusline, fg = cp.red },
BufferInactive = { bg = cpt.bg_statusline, fg = cpt.comment }, BufferInactive = { bg = cp.bg_statusline, fg = cp.comment },
BufferInactiveIndex = { bg = cpt.bg_statusline, fg = cpt.comment }, BufferInactiveIndex = { bg = cp.bg_statusline, fg = cp.comment },
BufferInactiveMod = { bg = cpt.bg_statusline, fg = util.darken(cpt.warning, 0.7) }, BufferInactiveMod = { bg = cp.bg_statusline, fg = util.darken(cp.warning, 0.7) },
BufferInactiveSign = { bg = cpt.bg_statusline, fg = cpt.border_highlight }, BufferInactiveSign = { bg = cp.bg_statusline, fg = cp.border_highlight },
BufferInactiveTarget = { bg = cpt.bg_statusline, fg = cpt.red }, BufferInactiveTarget = { bg = cp.bg_statusline, fg = cp.red },
BufferTabpages = { bg = cpt.bg_statusline, fg = cpt.none }, BufferTabpages = { bg = cp.bg_statusline, fg = cp.none },
BufferTabpage = { bg = cpt.bg_statusline, fg = cpt.border_highlight }, BufferTabpage = { bg = cp.bg_statusline, fg = cp.border_highlight },
} }
end end

@ -1,27 +1,27 @@
local M = {} local M = {}
local util = require("catppuccino.utils.util") local util = require("catppuccino.utils.util")
function M.get(cpt) function M.get(cp)
local inactive_clr = util.darken("#000000", 0.56) local inactive_clr = util.darken("#000000", 0.56)
return { return {
BufferLineFill = { bg = util.brighten(cpt.bg, 0.05) }, BufferLineFill = { bg = util.brighten(cp.bg, 0.05) },
BufferLineBackground = { fg = cpt.gray, bg = inactive_clr }, BufferLineBackground = { fg = cp.gray, bg = inactive_clr },
BufferLineBufferVisible = { fg = cpt.gray, bg = inactive_clr }, BufferLineBufferVisible = { fg = cp.gray, bg = inactive_clr },
BufferLineBufferSelected = { fg = cpt.fg, bg = cpt.bg }, BufferLineBufferSelected = { fg = cp.fg, bg = cp.bg },
BufferLineTab = { fg = cpt.gray, bg = cpt.bg }, BufferLineTab = { fg = cp.gray, bg = cp.bg },
BufferLineTabSelected = { fg = cpt.red, bg = cpt.blue }, BufferLineTabSelected = { fg = cp.red, bg = cp.blue },
BufferLineTabClose = { fg = cpt.red, bg = inactive_clr }, BufferLineTabClose = { fg = cp.red, bg = inactive_clr },
BufferLineIndicatorSelected = { fg = cpt.bg, bg = cpt.bg }, BufferLineIndicatorSelected = { fg = cp.bg, bg = cp.bg },
-- separators -- separators
BufferLineSeparator = { fg = inactive_clr, bg = inactive_clr }, BufferLineSeparator = { fg = inactive_clr, bg = inactive_clr },
BufferLineSeparatorVisible = { fg = inactive_clr, bg = inactive_clr }, BufferLineSeparatorVisible = { fg = inactive_clr, bg = inactive_clr },
BufferLineSeparatorSelected = { fg = inactive_clr, bg = inactive_clr }, BufferLineSeparatorSelected = { fg = inactive_clr, bg = inactive_clr },
-- close buttons -- close buttons
BufferLineCloseButton = { fg = cpt.gray, bg = inactive_clr }, BufferLineCloseButton = { fg = cp.gray, bg = inactive_clr },
BufferLineCloseButtonVisible = { fg = cpt.gray, bg = inactive_clr }, BufferLineCloseButtonVisible = { fg = cp.gray, bg = inactive_clr },
BufferLineCloseButtonSelected = { fg = cpt.red, bg = cpt.bg }, BufferLineCloseButtonSelected = { fg = cp.red, bg = cp.bg },
} }
end end

@ -1,14 +1,14 @@
local M = {} local M = {}
local util = require("catppuccino.utils.util") local util = require("catppuccino.utils.util")
function M.get(cpt) function M.get(cp)
return { return {
CmpItemAbbr = { fg = util.darken(cpt.white, 0.56) }, CmpItemAbbr = { fg = util.darken(cp.white, 0.56) },
CmpItemAbbrDeprecated = { fg = util.darken(cpt.white, 0.56), stlye = "strikethrough" }, CmpItemAbbrDeprecated = { fg = util.darken(cp.white, 0.56), stlye = "strikethrough" },
CmpItemAbbrMatch = { fg = cpt.fg, style = "bold" }, CmpItemAbbrMatch = { fg = cp.fg, style = "bold" },
CmpItemAbbrMatchFuzzy = { fg = cpt.fg, style = "bold" }, CmpItemAbbrMatchFuzzy = { fg = cp.fg, style = "bold" },
CmpItemKind = { fg = cpt.blue_br }, CmpItemKind = { fg = cp.blue_br },
CmpItemMenu = { fg = cpt.fg }, CmpItemMenu = { fg = cp.fg },
} }
end end

@ -1,11 +1,11 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cp)
return { return {
DashboardShortCut = { fg = cpt.cyan }, DashboardShortCut = { fg = cp.cyan },
DashboardHeader = { fg = cpt.yellow }, DashboardHeader = { fg = cp.yellow },
DashboardCenter = { fg = cpt.green }, DashboardCenter = { fg = cp.green },
DashboardFooter = { fg = cpt.orange, style = "italic" }, DashboardFooter = { fg = cp.orange, style = "italic" },
} }
end end

@ -1,8 +1,8 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cp)
return { return {
FernBranchText = { fg = cpt.blue }, FernBranchText = { fg = cp.blue },
} }
end end

@ -1,10 +1,10 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cp)
return { return {
GitGutterAdd = { fg = cpt.diff.add }, GitGutterAdd = { fg = cp.diff.add },
GitGutterChange = { fg = cpt.diff.change }, GitGutterChange = { fg = cp.diff.change },
GitGutterDelete = { fg = cpt.diff.delete }, GitGutterDelete = { fg = cp.diff.delete },
} }
end end
return M return M

@ -1,10 +1,10 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cp)
return { return {
GitSignsAdd = { fg = cpt.diff.add, bg = cnf.transparency and cpt.none or cpt.bg }, -- diff mode: Added line |diff.txt| GitSignsAdd = { fg = cp.diff.add, bg = cnf.transparency and cp.none or cp.bg }, -- diff mode: Added line |diff.txt|
GitSignsChange = { fg = cpt.diff.change, bg = cnf.transparency and cpt.none or cpt.bg }, -- diff mode: Changed line |diff.txt| GitSignsChange = { fg = cp.diff.change, bg = cnf.transparency and cp.none or cp.bg }, -- diff mode: Changed line |diff.txt|
GitSignsDelete = { fg = cpt.diff.remove, bg = cnf.transparency and cpt.none or cpt.bg }, -- diff mode: Deleted line |diff.txt| GitSignsDelete = { fg = cp.diff.remove, bg = cnf.transparency and cp.none or cp.bg }, -- diff mode: Deleted line |diff.txt|
} }
end end

@ -1,11 +1,11 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cp)
return { return {
HopNextKey = { bg = cpt.bg, fg = cpt.orange, style = "bold,underline" }, HopNextKey = { bg = cp.bg, fg = cp.orange, style = "bold,underline" },
HopNextKey1 = { bg = cpt.bg, fg = cpt.blue, style = "bold" }, HopNextKey1 = { bg = cp.bg, fg = cp.blue, style = "bold" },
HopNextKey2 = { bg = cpt.bg, fg = cpt.green, style = "bold,italic" }, HopNextKey2 = { bg = cp.bg, fg = cp.green, style = "bold,italic" },
HopUnmatched = { bg = cpt.bg, fg = cpt.comment }, HopUnmatched = { bg = cp.bg, fg = cp.comment },
} }
end end

@ -1,18 +1,18 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cp)
local hi = { local hi = {
IndentBlanklineChar = { fg = cpt.gray }, IndentBlanklineChar = { fg = cp.gray },
} }
if cnf.integrations.indent_blankline.colored_indent_levels then if cnf.integrations.indent_blankline.colored_indent_levels then
hi["IndentBlanklineIndent6"] = {blend = "nocombine", fg = cpt.yellow} hi["IndentBlanklineIndent6"] = {blend = "nocombine", fg = cp.yellow}
hi["IndentBlanklineIndent5"] = {blend = "nocombine", fg = cpt.red} hi["IndentBlanklineIndent5"] = {blend = "nocombine", fg = cp.red}
hi["IndentBlanklineIndent4"] = {blend = "nocombine", fg = cpt.green} hi["IndentBlanklineIndent4"] = {blend = "nocombine", fg = cp.green}
hi["IndentBlanklineIndent3"] = {blend = "nocombine", fg = cpt.orange} hi["IndentBlanklineIndent3"] = {blend = "nocombine", fg = cp.orange}
hi["IndentBlanklineIndent2"] = {blend = "nocombine", fg = cpt.blue} hi["IndentBlanklineIndent2"] = {blend = "nocombine", fg = cp.blue}
hi["IndentBlanklineIndent1"] = {blend = "nocombine", fg = cpt.magenta} hi["IndentBlanklineIndent1"] = {blend = "nocombine", fg = cp.magenta}
end end
return hi return hi

@ -10,7 +10,7 @@ local function get_prepared()
return is_prepared return is_prepared
end end
function M.get(cpt) function M.get(cp)
if not get_prepared() then if not get_prepared() then
local catppuccino = require("catppuccino") local catppuccino = require("catppuccino")
@ -28,20 +28,20 @@ function M.get(cpt)
end end
return { return {
LightspeedLabel = {bg = cpt.bg_search, fg = cpt.fg}, LightspeedLabel = {bg = cp.bg_search, fg = cp.fg},
LightspeedOverlapped = {bg = cpt.bg_visual, fg = cpt.fg}, LightspeedOverlapped = {bg = cp.bg_visual, fg = cp.fg},
LightspeedLabelDistant = {bg = cpt.magenta_br, fg = cpt.fg}, LightspeedLabelDistant = {bg = cp.magenta_br, fg = cp.fg},
LightspeedLabelDistantOverlapped = {bg = cpt.magenta_br, fg = cpt.fg}, LightspeedLabelDistantOverlapped = {bg = cp.magenta_br, fg = cp.fg},
LightspeedShortcut = {bg = cpt.bg, fg = cpt.orange, style = "italic"}, LightspeedShortcut = {bg = cp.bg, fg = cp.orange, style = "italic"},
LightspeedShortcutOverlapped = {bg = cpt.bg, fg = cpt.orange, style = "bold"}, LightspeedShortcutOverlapped = {bg = cp.bg, fg = cp.orange, style = "bold"},
LightspeedMaskedChar = {bg = cpt.bg, fg = cpt.red, style = "undercurl"}, LightspeedMaskedChar = {bg = cp.bg, fg = cp.red, style = "undercurl"},
LightspeedGreyWash = {bg = cpt.bg, fg = cpt.comment}, LightspeedGreyWash = {bg = cp.bg, fg = cp.comment},
LightspeedUnlabeledMatch = {bg = cpt.bg, fg = cpt.red_br, style = "underline"}, LightspeedUnlabeledMatch = {bg = cp.bg, fg = cp.red_br, style = "underline"},
LightspeedOneCharMatch = {bg = cpt.bg, fg = cpt.red_br, style = "underline"}, LightspeedOneCharMatch = {bg = cp.bg, fg = cp.red_br, style = "underline"},
LightspeedUniqueChar = {bg = cpt.bg, fg = cpt.white_br, style = "strikethrough"}, LightspeedUniqueChar = {bg = cp.bg, fg = cp.white_br, style = "strikethrough"},
LightspeedPendingOpArea = {bg = cpt.bg, fg = cpt.white_br, style = "strikethrough"}, LightspeedPendingOpArea = {bg = cp.bg, fg = cp.white_br, style = "strikethrough"},
LightspeedPendingChangeOpArea = {bg = cpt.bg, fg = cpt.white_br, style = "strikethrough"}, LightspeedPendingChangeOpArea = {bg = cp.bg, fg = cp.white_br, style = "strikethrough"},
LightspeedCursor = {fg = cpt.bg, bg = cpt.fg}, LightspeedCursor = {fg = cp.bg, bg = cp.fg},
} }
end end

@ -1,27 +1,27 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cp)
return { return {
DiagnosticError = { fg = cpt.error }, DiagnosticError = { fg = cp.error },
DiagnosticWarning = { fg = cpt.warning }, DiagnosticWarning = { fg = cp.warning },
DiagnosticInformation = { fg = cpt.info }, DiagnosticInformation = { fg = cp.info },
DiagnosticHint = { fg = cpt.hint }, DiagnosticHint = { fg = cp.hint },
LspFloatWinNormal = { bg = cpt.bg_float }, LspFloatWinNormal = { bg = cp.bg_float },
LspFloatWinBorder = { fg = cpt.border_highlight }, LspFloatWinBorder = { fg = cp.border_highlight },
LspSagaBorderTitle = { fg = cpt.cyan }, LspSagaBorderTitle = { fg = cp.cyan },
LspSagaHoverBorder = { fg = cpt.blue }, LspSagaHoverBorder = { fg = cp.blue },
LspSagaRenameBorder = { fg = cpt.green }, LspSagaRenameBorder = { fg = cp.green },
LspSagaDefPreviewBorder = { fg = cpt.green }, LspSagaDefPreviewBorder = { fg = cp.green },
LspSagaCodeActionBorder = { fg = cpt.blue }, LspSagaCodeActionBorder = { fg = cp.blue },
LspSagaFinderSelection = { fg = cpt.bg_visual }, LspSagaFinderSelection = { fg = cp.bg_visual },
LspSagaCodeActionTitle = { fg = cpt.blue1 }, LspSagaCodeActionTitle = { fg = cp.blue1 },
LspSagaCodeActionContent = { fg = cpt.purple }, LspSagaCodeActionContent = { fg = cp.purple },
LspSagaSignatureHelpBorder = { fg = cpt.red }, LspSagaSignatureHelpBorder = { fg = cp.red },
ReferencesCount = { fg = cpt.purple }, ReferencesCount = { fg = cp.purple },
DefinitionCount = { fg = cpt.purple }, DefinitionCount = { fg = cp.purple },
DefinitionIcon = { fg = cpt.blue }, DefinitionIcon = { fg = cp.blue },
ReferencesIcon = { fg = cpt.blue }, ReferencesIcon = { fg = cp.blue },
TargetWord = { fg = cpt.cyan }, TargetWord = { fg = cp.cyan },
} }
end end
return M return M

@ -1,10 +1,10 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cp)
return { return {
LspTroubleText = { fg = cpt.fg_alt }, LspTroubleText = { fg = cp.fg_alt },
LspTroubleCount = { fg = cpt.magenta, bg = cpt.fg_gutter }, LspTroubleCount = { fg = cp.magenta, bg = cp.fg_gutter },
LspTroubleNormal = { fg = cpt.fg_sidebar, bg = cpt.bg_sidebar }, LspTroubleNormal = { fg = cp.fg_sidebar, bg = cp.bg_sidebar },
} }
end end

@ -1,13 +1,13 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cp)
return { return {
markdownHeadingDelimiter = { fg = cpt.orange, style = "bold" }, markdownHeadingDelimiter = { fg = cp.orange, style = "bold" },
markdownCode = { fg = cpt.cyan }, markdownCode = { fg = cp.cyan },
markdownCodeBlock = { fg = cpt.cyan }, markdownCodeBlock = { fg = cp.cyan },
markdownH1 = { fg = cpt.magenta, style = "bold" }, markdownH1 = { fg = cp.magenta, style = "bold" },
markdownH2 = { fg = cpt.blue, style = "bold" }, markdownH2 = { fg = cp.blue, style = "bold" },
markdownLinkText = { fg = cpt.blue, style = "underline" }, markdownLinkText = { fg = cp.blue, style = "underline" },
} }
end end

@ -1,46 +1,46 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cp)
local virtual_text = cnf.integrations.native_lsp.virtual_text local virtual_text = cnf.integrations.native_lsp.virtual_text
local underlines = cnf.integrations.native_lsp.underlines local underlines = cnf.integrations.native_lsp.underlines
return { return {
-- These groups are for the native LSP cliencpt. Some other LSP clients may -- These groups are for the native LSP cliencp. Some other LSP clients may
-- use these groups, or use their own. Consult your LSP client's -- use these groups, or use their own. Consult your LSP client's
-- documentation. -- documentation.
LspReferenceText = { bg = cpt.fg_gutter }, -- used for highlighting "text" references LspReferenceText = { bg = cp.fg_gutter }, -- used for highlighting "text" references
LspReferenceRead = { bg = cpt.fg_gutter }, -- used for highlighting "read" references LspReferenceRead = { bg = cp.fg_gutter }, -- used for highlighting "read" references
LspReferenceWrite = { bg = cpt.fg_gutter }, -- used for highlighting "write" references LspReferenceWrite = { bg = cp.fg_gutter }, -- used for highlighting "write" references
-- hightlight diagnostics in numberline -- hightlight diagnostics in numberline
DiagnosticError = { fg = cpt.error }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default DiagnosticError = { fg = cp.error }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default
DiagnosticWarn = { fg = cpt.warning }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default DiagnosticWarn = { fg = cp.warning }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default
DiagnosticInfo = { fg = cpt.info }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default DiagnosticInfo = { fg = cp.info }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default
DiagnosticHint = { fg = cpt.hint }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default DiagnosticHint = { fg = cp.hint }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default
LspDiagnosticsDefaultError = { fg = cpt.error }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) LspDiagnosticsDefaultError = { fg = cp.error }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultWarning = { fg = cpt.warning }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) LspDiagnosticsDefaultWarning = { fg = cp.warning }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultInformation = { fg = cpt.info }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) LspDiagnosticsDefaultInformation = { fg = cp.info }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultHint = { fg = cpt.hint }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) LspDiagnosticsDefaultHint = { fg = cp.hint }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspSignatureActiveParameter = { fg = cpt.orange }, LspSignatureActiveParameter = { fg = cp.orange },
-- LspDiagnosticsFloatingError = { }, -- Used to color "Error" diagnostic messages in diagnostics float -- LspDiagnosticsFloatingError = { }, -- Used to color "Error" diagnostic messages in diagnostics float
-- LspDiagnosticsFloatingWarning = { }, -- Used to color "Warning" 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 -- LspDiagnosticsFloatingInformation = { }, -- Used to color "Information" diagnostic messages in diagnostics float
-- LspDiagnosticsFloatingHint = { }, -- Used to color "Hint" diagnostic messages in diagnostics float -- LspDiagnosticsFloatingHint = { }, -- Used to color "Hint" diagnostic messages in diagnostics float
LspDiagnosticsError = { fg = cpt.error }, LspDiagnosticsError = { fg = cp.error },
LspDiagnosticsWarning = { fg = cpt.warning }, LspDiagnosticsWarning = { fg = cp.warning },
LspDiagnosticsInformation = { fg = cpt.info }, LspDiagnosticsInformation = { fg = cp.info },
LspDiagnosticsHint = { fg = cpt.hint }, LspDiagnosticsHint = { fg = cp.hint },
LspDiagnosticsVirtualTextError = { fg = cpt.error, style = virtual_text.errors }, -- Used for "Error" diagnostic virtual text LspDiagnosticsVirtualTextError = { fg = cp.error, style = virtual_text.errors }, -- Used for "Error" diagnostic virtual text
LspDiagnosticsVirtualTextWarning = { fg = cpt.warning, style = virtual_text.warnings }, -- Used for "Warning" diagnostic virtual text LspDiagnosticsVirtualTextWarning = { fg = cp.warning, style = virtual_text.warnings }, -- Used for "Warning" diagnostic virtual text
LspDiagnosticsVirtualTextInformation = { fg = cpt.info, style = virtual_text.warnings }, -- Used for "Information" diagnostic virtual text LspDiagnosticsVirtualTextInformation = { fg = cp.info, style = virtual_text.warnings }, -- Used for "Information" diagnostic virtual text
LspDiagnosticsVirtualTextHint = { fg = cpt.hint, style = virtual_text.hints }, -- Used for "Hint" diagnostic virtual text LspDiagnosticsVirtualTextHint = { fg = cp.hint, style = virtual_text.hints }, -- Used for "Hint" diagnostic virtual text
LspDiagnosticsUnderlineError = { style = underlines.errors, sp = cpt.error }, -- Used to underline "Error" diagnostics LspDiagnosticsUnderlineError = { style = underlines.errors, sp = cp.error }, -- Used to underline "Error" diagnostics
LspDiagnosticsUnderlineWarning = { style = underlines.warnings, sp = cpt.warning }, -- Used to underline "Warning" diagnostics LspDiagnosticsUnderlineWarning = { style = underlines.warnings, sp = cp.warning }, -- Used to underline "Warning" diagnostics
LspDiagnosticsUnderlineInformation = { style = underlines.information, sp = cpt.info }, -- Used to underline "Information" diagnostics LspDiagnosticsUnderlineInformation = { style = underlines.information, sp = cp.info }, -- Used to underline "Information" diagnostics
LspDiagnosticsUnderlineHint = { style = underlines.hints, sp = cpt.hint }, -- Used to underline "Hint" diagnostics LspDiagnosticsUnderlineHint = { style = underlines.hints, sp = cp.hint }, -- Used to underline "Hint" diagnostics
LspCodeLens = { fg = cpt.comment }, -- virtual text of the codelens LspCodeLens = { fg = cp.comment }, -- virtual text of the codelens
} }
end end

@ -1,15 +1,15 @@
local M = {} local M = {}
local util = require("catppuccino.utils.util") local util = require("catppuccino.utils.util")
function M.get(cpt) function M.get(cp)
return { return {
NeogitBranch = { fg = cpt.magenta }, NeogitBranch = { fg = cp.magenta },
NeogitRemote = { fg = cpt.pink }, NeogitRemote = { fg = cp.pink },
NeogitHunkHeader = { bg = cpt.bg_highlight, fg = cpt.fg }, NeogitHunkHeader = { bg = cp.bg_highlight, fg = cp.fg },
NeogitHunkHeaderHighlight = { bg = cpt.fg_gutter, fg = cpt.blue }, NeogitHunkHeaderHighlight = { bg = cp.fg_gutter, fg = cp.blue },
NeogitDiffContextHighlight = { bg = util.darken(cpt.fg_gutter, 0.5), fg = cpt.fg_alt }, NeogitDiffContextHighlight = { bg = util.darken(cp.fg_gutter, 0.5), fg = cp.fg_alt },
NeogitDiffDeleteHighlight = { fg = cpt.diff.delete, bg = cpt.bg }, NeogitDiffDeleteHighlight = { fg = cp.diff.delete, bg = cp.bg },
NeogitDiffAddHighlight = { fg = cpt.diff.add, bg = cpt.bg }, NeogitDiffAddHighlight = { fg = cp.diff.add, bg = cp.bg },
} }
end end

@ -1,31 +1,31 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cp)
local config = require("catppuccino.config").options local config = require("catppuccino.config").options
local root_dir_color = cpt.bg_sidebar local root_dir_color = cp.bg_sidebar
if config.integrations.nvimtree.show_root then if config.integrations.nvimtree.show_root then
root_dir_color = cpt.blue root_dir_color = cp.blue
end end
return { return {
NvimTreeFolderName = { fg = cpt.blue }, NvimTreeFolderName = { fg = cp.blue },
NvimTreeFolderIcon = { fg = cpt.blue }, NvimTreeFolderIcon = { fg = cp.blue },
NvimTreeNormal = { fg = cpt.fg, bg = cpt.bg_sidebar }, NvimTreeNormal = { fg = cp.fg, bg = cp.bg_sidebar },
NvimTreeOpenedFolderName = { fg = cpt.blue }, NvimTreeOpenedFolderName = { fg = cp.blue },
NvimTreeEmptyFolderName = { fg = cpt.blue_br }, NvimTreeEmptyFolderName = { fg = cp.blue_br },
NvimTreeIndentMarker = { fg = cpt.comment }, NvimTreeIndentMarker = { fg = cp.comment },
NvimTreeVertSplit = { fg = cpt.black, bg = cpt.black }, NvimTreeVertSplit = { fg = cp.black, bg = cp.black },
NvimTreeRootFolder = { fg = root_dir_color, style = "bold" }, NvimTreeRootFolder = { fg = root_dir_color, style = "bold" },
NvimTreeSymlink = { fg = cpt.magenta }, NvimTreeSymlink = { fg = cp.magenta },
NvimTreeStatuslineNc = { fg = cpt.black, bg = cpt.black }, NvimTreeStatuslineNc = { fg = cp.black, bg = cp.black },
NvimTreeGitDirty = { fg = cpt.diff.change }, NvimTreeGitDirty = { fg = cp.diff.change },
NvimTreeGitNew = { fg = cpt.diff.add }, NvimTreeGitNew = { fg = cp.diff.add },
NvimTreeGitDeleted = { fg = cpt.diff.delete }, NvimTreeGitDeleted = { fg = cp.diff.delete },
NvimTreeSpecialFile = { fg = cpt.cyan }, NvimTreeSpecialFile = { fg = cp.cyan },
NvimTreeImageFile = { fg = cpt.fg_sidebar }, NvimTreeImageFile = { fg = cp.fg_sidebar },
NvimTreeOpenedFile = { fg = cpt.magenta }, NvimTreeOpenedFile = { fg = cp.magenta },
} }
end end

@ -1,11 +1,11 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cp)
return { return {
TelescopeBorder = { fg = cpt.border_highlight }, TelescopeBorder = { fg = cp.border_highlight },
TelescopeSelectionCaret = { fg = cpt.cyan }, TelescopeSelectionCaret = { fg = cp.cyan },
TelescopeSelection = { fg = cpt.cyan, bg = cpt.bg_highlight }, TelescopeSelection = { fg = cp.cyan, bg = cp.bg_highlight },
TelescopeMatching = { fg = cpt.blue }, TelescopeMatching = { fg = cp.blue },
} }
end end

@ -1,7 +1,7 @@
local util = require("catppuccino.utils.util") local util = require("catppuccino.utils.util")
local M = {} local M = {}
function M.get(cpt) function M.get(cp)
return { return {
-- These groups are for the neovim tree-sitter highlights. -- These groups are for the neovim tree-sitter highlights.
-- As of writing, tree-sitter support is a WIP, group names may change. -- As of writing, tree-sitter support is a WIP, group names may change.
@ -11,60 +11,60 @@ function M.get(cpt)
-- TSAnnotation = { }; -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information. -- TSAnnotation = { }; -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information.
-- TSAttribute = { }; -- (unstable) TODO: docs -- TSAttribute = { }; -- (unstable) TODO: docs
TSBoolean = { fg = cpt.orange_br, style = cnf.styles.keywords }, -- For booleans. TSBoolean = { fg = cp.orange_br, style = cnf.styles.keywords }, -- For booleans.
-- TSCharacter = { }; -- For characters. -- TSCharacter = { }; -- For characters.
-- TSComment = { }; -- For comment blocks. -- TSComment = { }; -- For comment blocks.
TSNote = { fg = cpt.bg, bg = cpt.info }, TSNote = { fg = cp.bg, bg = cp.info },
TSWarning = { fg = cpt.bg, bg = cpt.warning }, TSWarning = { fg = cp.bg, bg = cp.warning },
TSDanger = { fg = cpt.bg, bg = cpt.error }, TSDanger = { fg = cp.bg, bg = cp.error },
TSConstructor = { fg = cpt.magenta }, -- For constructor calls and definitions: `= { }` in Lua, and Java constructors. TSConstructor = { fg = cp.magenta }, -- For constructor calls and definitions: `= { }` in Lua, and Java constructors.
TSConditional = { fg = cpt.red, style = cnf.styles.keywords }, -- For keywords related to conditionnals. TSConditional = { fg = cp.red, style = cnf.styles.keywords }, -- For keywords related to conditionnals.
TSConstant = { fg = cpt.orange }, -- For constants TSConstant = { fg = cp.orange }, -- For constants
TSConstBuiltin = { fg = cpt.orange_br, style = cnf.styles.keywords }, -- For constant that are built in the language: `nil` in Lua. TSConstBuiltin = { fg = cp.orange_br, style = cnf.styles.keywords }, -- For constant that are built in the language: `nil` in Lua.
-- TSConstMacro = { }; -- For constants that are defined by macros: `NULL` in cpt. -- TSConstMacro = { }; -- For constants that are defined by macros: `NULL` in cp.
-- TSError = { }; -- For syntax/parser errors. -- TSError = { }; -- For syntax/parser errors.
TSException = { fg = cpt.magenta_br, style = cnf.styles.keywords }, -- For exception related keywords. TSException = { fg = cp.magenta_br, style = cnf.styles.keywords }, -- For exception related keywords.
TSField = { fg = cpt.red }, -- For fields. TSField = { fg = cp.red }, -- For fields.
rustTSField = { fg = util.darken(cpt.white, 0.75) }, -- For fields. rustTSField = { fg = util.darken(cp.white, 0.75) }, -- For fields.
-- TSFloat = { }; -- For floats. -- TSFloat = { }; -- For floats.
TSFunction = { fg = cpt.blue, style = cnf.styles.functions }, -- For function (calls and definitions). TSFunction = { fg = cp.blue, style = cnf.styles.functions }, -- For function (calls and definitions).
TSFuncBuiltin = { fg = cpt.cyan }, -- For builtin functions: `table.insert` in Lua. TSFuncBuiltin = { fg = cp.cyan }, -- For builtin functions: `table.insert` in Lua.
TSFuncMacro = { fg = cpt.red }, -- For macro defined functions (calls and definitions): each `macro_rules` in Ruscpt. TSFuncMacro = { fg = cp.red }, -- For macro defined functions (calls and definitions): each `macro_rules` in Ruscp.
TSInclude = { fg = cpt.magenta, style = cnf.styles.keywords }, -- For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` in Lua. TSInclude = { fg = cp.magenta, style = cnf.styles.keywords }, -- For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` in Lua.
TSKeyword = { fg = cpt.magenta, style = cnf.styles.keywords }, -- For keywords that don't fall in previous categories. TSKeyword = { fg = cp.magenta, style = cnf.styles.keywords }, -- For keywords that don't fall in previous categories.
TSKeywordFunction = { fg = cpt.magenta_br, style = cnf.styles.keywords }, -- For keywords used to define a fuction. TSKeywordFunction = { fg = cp.magenta_br, style = cnf.styles.keywords }, -- For keywords used to define a fuction.
TSKeywordOperator = { fg = cpt.cyan, style = cnf.styles.keywords }, -- For `new` keyword operator TSKeywordOperator = { fg = cp.cyan, style = cnf.styles.keywords }, -- For `new` keyword operator
TSLabel = { fg = cpt.blue }, -- For labels: `label:` in C and `:label:` in Lua. TSLabel = { fg = cp.blue }, -- For labels: `label:` in C and `:label:` in Lua.
-- TSMethod = { }; -- For method calls and definitions. -- TSMethod = { }; -- For method calls and definitions.
TSNamespace = { fg = cpt.cyan }, -- For identifiers referring to modules and namespaces. TSNamespace = { fg = cp.cyan }, -- For identifiers referring to modules and namespaces.
-- TSNone = { }; -- TODO: docs -- TSNone = { }; -- TODO: docs
-- TSNumber = { }; -- For all numbers -- TSNumber = { }; -- For all numbers
TSOperator = { fg = cpt.cyan }, -- For any operator: `+`, but also `->` and `*` in cpt. TSOperator = { fg = cp.cyan }, -- For any operator: `+`, but also `->` and `*` in cp.
TSParameter = { fg = cpt.orange_br }, -- For parameters of a function. TSParameter = { fg = cp.orange_br }, -- For parameters of a function.
-- TSParameterReference= { }; -- For references to parameters of a function. -- TSParameterReference= { }; -- For references to parameters of a function.
TSProperty = { fg = cpt.red_br }, -- Same as `TSField`. TSProperty = { fg = cp.red_br }, -- Same as `TSField`.
tomlTSProperty = { fg = cpt.blue }, -- Differentiates between string and properties tomlTSProperty = { fg = cp.blue }, -- Differentiates between string and properties
TSPunctDelimiter = { fg = cpt.green_br }, -- For delimiters ie: `.` TSPunctDelimiter = { fg = cp.green_br }, -- For delimiters ie: `.`
TSPunctBracket = { fg = cpt.red }, -- For brackets and parenthesis. TSPunctBracket = { fg = cp.red }, -- For brackets and parenthesis.
TSPunctSpecial = { fg = cpt.white }, -- For special punctutation that does not fall in the catagories before. TSPunctSpecial = { fg = cp.white }, -- For special punctutation that does not fall in the catagories before.
TSRepeat = { fg = cpt.red, style = cnf.styles.keywords }, -- For keywords related to loops. TSRepeat = { fg = cp.red, style = cnf.styles.keywords }, -- For keywords related to loops.
-- TSString = { }; -- For strings. -- TSString = { }; -- For strings.
TSStringRegex = { fg = cpt.blue, style = cnf.styles.strings }, -- For regexes. TSStringRegex = { fg = cp.blue, style = cnf.styles.strings }, -- For regexes.
TSStringEscape = { fg = cpt.magenta, style = cnf.styles.strings }, -- For escape characters within a string. TSStringEscape = { fg = cp.magenta, style = cnf.styles.strings }, -- For escape characters within a string.
-- TSSymbol = { }; -- For identifiers referring to symbols or atoms. -- TSSymbol = { }; -- For identifiers referring to symbols or atoms.
-- TSType = { }; -- For types. -- TSType = { }; -- For types.
TSTypeBuiltin = { fg = cpt.cyan, style = cnf.styles.keywords }, -- For builtin types. TSTypeBuiltin = { fg = cp.cyan, style = cnf.styles.keywords }, -- For builtin types.
TSVariable = { style = cnf.styles.variables }, -- Any variable name that does not have another highlighcpt. TSVariable = { style = cnf.styles.variables }, -- Any variable name that does not have another highlighcp.
TSVariableBuiltin = { fg = cpt.red, style = cnf.styles.keywords }, -- Variable names that are defined by the languages, like `this` or `self`. TSVariableBuiltin = { fg = cp.red, style = cnf.styles.keywords }, -- Variable names that are defined by the languages, like `this` or `self`.
-- TSTag = { }; -- Tags like html tag names. -- TSTag = { }; -- Tags like html tag names.
-- TSTagDelimiter = { }; -- Tag delimiter like `<` `>` `/` -- TSTagDelimiter = { }; -- Tag delimiter like `<` `>` `/`
-- TSText = { }; -- For strings considered text in a markup language. -- TSText = { }; -- For strings considered text in a markup language.
TSTextReference = { fg = cpt.cyan }, TSTextReference = { fg = cp.cyan },
-- TSEmphasis = { }; -- For text to be represented with emphasis. -- TSEmphasis = { }; -- For text to be represented with emphasis.
-- TSUnderline = { }; -- For text to be represented with an underline. -- TSUnderline = { }; -- For text to be represented with an underline.
-- TSStrike = { }; -- For strikethrough texcpt. -- TSStrike = { }; -- For strikethrough texcp.
-- TSTitle = { }; -- Text that is part of a title. -- TSTitle = { }; -- Text that is part of a title.
-- TSLiteral = { }; -- Literal texcpt. -- TSLiteral = { }; -- Literal texcp.
-- TSURI = { }; -- Any URI like a link or email. -- TSURI = { }; -- Any URI like a link or email.
} }
end end

@ -1,14 +1,14 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cp)
return { return {
rainbowcol1 = {bg = cpt.bg, fg = cpt.red}, rainbowcol1 = {bg = cp.bg, fg = cp.red},
rainbowcol2 = {bg = cpt.bg, fg = cpt.green}, rainbowcol2 = {bg = cp.bg, fg = cp.green},
rainbowcol3 = {bg = cpt.bg, fg = cpt.yellow}, rainbowcol3 = {bg = cp.bg, fg = cp.yellow},
rainbowcol4 = {bg = cpt.bg, fg = cpt.blue}, rainbowcol4 = {bg = cp.bg, fg = cp.blue},
rainbowcol5 = {bg = cpt.bg, fg = cpt.magenta}, rainbowcol5 = {bg = cp.bg, fg = cp.magenta},
rainbowcol6 = {bg = cpt.bg, fg = cpt.cyan}, rainbowcol6 = {bg = cp.bg, fg = cp.cyan},
rainbowcol7 = {bg = cpt.bg, fg = cpt.white}, rainbowcol7 = {bg = cp.bg, fg = cp.white},
} }
end end

@ -1,9 +1,9 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cp)
return { return {
Sneak = { fg = cpt.bg_highlight, bg = cpt.magenta }, Sneak = { fg = cp.bg_highlight, bg = cp.magenta },
SneakScope = { bg = cpt.bg_visual }, SneakScope = { bg = cp.bg_visual },
} }
end end

@ -1,14 +1,14 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cp)
return { return {
WhichKey = { fg = cpt.cyan }, WhichKey = { fg = cp.cyan },
WhichKeyGroup = { fg = cpt.blue }, WhichKeyGroup = { fg = cp.blue },
WhichKeyDesc = { fg = cpt.magenta }, WhichKeyDesc = { fg = cp.magenta },
WhichKeySeperator = { fg = cpt.comment }, WhichKeySeperator = { fg = cp.comment },
WhichKeySeparator = { fg = cpt.comment }, WhichKeySeparator = { fg = cp.comment },
WhichKeyFloat = { bg = cpt.bg_sidebar }, WhichKeyFloat = { bg = cp.bg_sidebar },
WhichKeyValue = { fg = cpt.comment }, WhichKeyValue = { fg = cp.comment },
} }
end end

Loading…
Cancel
Save