diff --git a/README.md b/README.md index c2b50ef2..9a0b24de 100644 --- a/README.md +++ b/README.md @@ -1387,6 +1387,21 @@ render_markdown = true + + + + snacks.nvim + + + +```lua +snacks = false +``` + + + + + diff --git a/lua/catppuccin/groups/integrations/snacks.lua b/lua/catppuccin/groups/integrations/snacks.lua new file mode 100644 index 00000000..9f28bcb9 --- /dev/null +++ b/lua/catppuccin/groups/integrations/snacks.lua @@ -0,0 +1,51 @@ +local M = {} + +function M.get() + return { + SnacksNormal = { link = "NormalFloat" }, + SnacksWinBar = { link = "Title" }, + SnacksBackdrop = { fg = C.overlay0 }, + SnacksNormalNC = { link = "NormalFloat" }, + SnacksWinBarNC = { link = "SnacksWinBar" }, + + SnacksNotifierInfo = { fg = C.blue }, + SnacksNotifierIconInfo = { fg = C.blue }, + SnacksNotifierTitleInfo = { fg = C.blue, style = { "italic" } }, + SnacksNotifierFooterInfo = { link = "DiagnosticInfo" }, + SnacksNotifierBorderInfo = { fg = C.blue }, + SnacksNotifierWarn = { fg = C.yellow }, + SnacksNotifierIconWarn = { fg = C.yellow }, + SnacksNotifierTitleWarn = { fg = C.yellow, style = { "italic" } }, + SnacksNotifierBorderWarn = { fg = C.yellow }, + SnacksNotifierFooterWarn = { link = "DiagnosticWarn" }, + SnacksNotifierDebug = { fg = C.peach }, + SnacksNotifierIconDebug = { fg = C.peach }, + SnacksNotifierTitleDebug = { fg = C.peach, style = { "italic" } }, + SnacksNotifierBorderDebug = { fg = C.peach }, + SnacksNotifierFooterDebug = { link = "DiagnosticHint" }, + SnacksNotifierError = { fg = C.red }, + SnacksNotifierIconError = { fg = C.red }, + SnacksNotifierTitleError = { fg = C.red, style = { "italic" } }, + SnacksNotifierBorderError = { fg = C.red }, + SnacksNotifierFooterError = { link = "DiagnosticError" }, + SnacksNotifierTrace = { fg = C.rosewater }, + SnacksNotifierIconTrace = { fg = C.rosewater }, + SnacksNotifierTitleTrace = { fg = C.rosewater, style = { "italic" } }, + SnacksNotifierBorderTrace = { fg = C.rosewater }, + SnacksNotifierFooterTrace = { link = "DiagnosticHint" }, + + SnacksDashboardNormal = { link = "Normal" }, + SnacksDashboardDesc = { fg = C.blue }, + SnacksDashboardFile = { fg = C.lavender }, + SnacksDashboardDir = { link = "NonText" }, + SnacksDashboardFooter = { fg = C.yellow, style = { "italic" } }, + SnacksDashboardHeader = { fg = C.blue }, + SnacksDashboardIcon = { fg = C.pink, bold = true }, + SnacksDashboardKey = { fg = C.peach }, + SnacksDashboardTerminal = { link = "SnacksDashboardNormal" }, + SnacksDashboardSpecial = { link = "Special" }, + SnacksDashboardTitle = { link = "Title" }, + } +end + +return M diff --git a/lua/catppuccin/types.lua b/lua/catppuccin/types.lua index b8f3f737..598b80f5 100644 --- a/lua/catppuccin/types.lua +++ b/lua/catppuccin/types.lua @@ -199,6 +199,7 @@ ---@field render_markdown boolean? ---@field sandwich boolean? ---@field semantic_tokens boolean? +---@field snacks boolean? ---@field symbols_outline boolean? ---@field telekasten boolean? ---@field telescope CtpIntegrationTelescope | boolean?