From d438c0141609338140b18363a9a1e8eb8bb17130 Mon Sep 17 00:00:00 2001 From: Null Chilly Date: Fri, 7 Jul 2023 20:52:11 +0700 Subject: [PATCH] fix(which-key): wrong separator highlight group --- .../groups/integrations/which_key.lua | 2 +- tests/setup_spec.lua | 107 ++++++++++++++++++ 2 files changed, 108 insertions(+), 1 deletion(-) diff --git a/lua/catppuccin/groups/integrations/which_key.lua b/lua/catppuccin/groups/integrations/which_key.lua index fd9b4605..3983d449 100644 --- a/lua/catppuccin/groups/integrations/which_key.lua +++ b/lua/catppuccin/groups/integrations/which_key.lua @@ -6,7 +6,7 @@ function M.get() WhichKeyBorder = { link = "FloatBorder" }, WhichKeyGroup = { fg = C.blue }, - WhichKeySeperator = { fg = C.overlay0 }, + WhichKeySeparator = { fg = C.overlay0 }, WhichKeyDesc = { fg = C.pink }, WhichKeyValue = { fg = C.overlay0 }, } diff --git a/tests/setup_spec.lua b/tests/setup_spec.lua index 695f71b2..d5a467bc 100644 --- a/tests/setup_spec.lua +++ b/tests/setup_spec.lua @@ -125,6 +125,113 @@ local configs = { end, }, }, + backwardspy = { + flavour = os.getenv "appearance" == "light" and "latte" or "mocha", + integrations = { + gitsigns = true, + indent_blankline = { enabled = true }, + leap = true, + mini = true, + neotree = true, + noice = true, + cmp = true, + notify = true, + treesitter = true, + telescope = true, + which_key = true, + }, + color_overrides = { + mocha = { + base = "#171717", + mantle = "#101010", + crust = "#0C0C0C", + }, + }, + custom_highlights = function(colors) + local utils = require "catppuccin.utils.colors" + local tint = function(tint) return utils.blend(tint, colors.base, 0.2) end + + return { + -- + -- notify + -- + NotifyBackground = { bg = colors.mantle }, + -- + -- noice + -- + NoiceCmdlinePopup = { bg = colors.mantle }, + NoiceCmdlinePopupBorder = { bg = colors.mantle, fg = colors.mantle }, + -- + -- telescope + -- + TelescopeMatching = { fg = colors.yellow }, + TelescopeSelection = { fg = colors.text, bg = colors.surface0 }, + -- results + TelescopeResultsNormal = { bg = colors.mantle }, + TelescopeResultsBorder = { bg = colors.mantle, fg = colors.mantle }, + TelescopeResultsTitle = { fg = colors.mantle }, + -- prompt + TelescopePromptNormal = { bg = colors.surface0 }, + TelescopePromptBorder = { bg = colors.surface0, fg = colors.surface0 }, + TelescopePromptTitle = { bg = colors.teal, fg = colors.mantle }, + TelescopePromptPrefix = { bg = colors.surface0 }, + -- preview + TelescopePreviewNormal = { bg = colors.crust }, + TelescopePreviewBorder = { bg = colors.crust, fg = colors.crust }, + TelescopePreviewTitle = { bg = colors.pink, fg = colors.mantle }, + -- + -- neotree + -- + NeoTreeNormal = { bg = colors.mantle }, + NeoTreeNormalNC = { bg = colors.mantle }, + -- + -- cmp + -- + PmenuSel = { bg = colors.mantle, fg = "NONE" }, + Pmenu = { fg = colors.text, bg = colors.crust }, + + CmpItemAbbrDeprecated = { fg = colors.overlay0, bg = "NONE", style = { "strikethrough" } }, + CmpItemAbbrMatch = { fg = colors.yellow, bg = "NONE", style = { "bold" } }, + CmpItemAbbrMatchFuzzy = { fg = colors.yellow, bg = "NONE", style = { "bold" } }, + CmpItemMenu = { fg = colors.lavender, bg = "NONE", style = { "italic" } }, + + CmpItemKindField = { fg = colors.rosewater, bg = tint(colors.rosewater) }, + CmpItemKindProperty = { fg = colors.rosewater, bg = tint(colors.rosewater) }, + CmpItemKindEvent = { fg = colors.rosewater, bg = tint(colors.rosewater) }, + + CmpItemKindText = { fg = colors.text, bg = tint(colors.text) }, + CmpItemKindModule = { fg = colors.text, bg = tint(colors.text) }, + CmpItemKindVariable = { fg = colors.text, bg = tint(colors.text) }, + CmpItemKindFile = { fg = colors.text, bg = tint(colors.text) }, + CmpItemKindUnit = { fg = colors.text, bg = tint(colors.text) }, + CmpItemKindValue = { fg = colors.text, bg = tint(colors.text) }, + + CmpItemKindEnum = { fg = colors.yellow, bg = tint(colors.yellow) }, + CmpItemKindReference = { fg = colors.yellow, bg = tint(colors.yellow) }, + CmpItemKindClass = { fg = colors.yellow, bg = tint(colors.yellow) }, + CmpItemKindFolder = { fg = colors.yellow, bg = tint(colors.yellow) }, + CmpItemKindEnumMember = { fg = colors.yellow, bg = tint(colors.yellow) }, + CmpItemKindInterface = { fg = colors.yellow, bg = tint(colors.yellow) }, + + CmpItemKindKeyword = { fg = colors.mauve, bg = tint(colors.mauve) }, + + CmpItemKindConstant = { fg = colors.peach, bg = tint(colors.peach) }, + + CmpItemKindConstructor = { fg = colors.lavender, bg = tint(colors.lavender) }, + + CmpItemKindFunction = { fg = colors.blue, bg = tint(colors.blue) }, + CmpItemKindMethod = { fg = colors.blue, bg = tint(colors.blue) }, + + CmpItemKindStruct = { fg = colors.teal, bg = tint(colors.teal) }, + CmpItemKindOperator = { fg = colors.teal, bg = tint(colors.teal) }, + + CmpItemKindSnippet = { fg = colors.flamingo, bg = tint(colors.flamingo) }, + + CmpItemKindColor = { fg = colors.pink, bg = tint(colors.pink) }, + CmpItemKindTypeParameter = { fg = colors.maroon, bg = tint(colors.maroon) }, + } + end, + }, } describe("setup", function()