Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(snacks): add integration #807

Merged
merged 2 commits into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,21 @@ render_markdown = true
</tr>
<!-- render-markdown.nvim -->

<!-- snacks.nvim -->
</tr>
<tr>
<td> <a href="https://github.com/folke/snacks.nvim">snacks.nvim</a> </td>
<td>


```lua
snacks = false
```

</td>
</tr>
<!-- snacks.nvim -->

<!-- symbols-outline.nvim -->
</tr>
<tr>
Expand Down
51 changes: 51 additions & 0 deletions lua/catppuccin/groups/integrations/snacks.lua
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions lua/catppuccin/types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down