Skip to content

Commit

Permalink
feat(snacks): add integration (#807)
Browse files Browse the repository at this point in the history
* feat(snacks): add `snacks.nvim` integration

* fix(snacks): revert `README.md` changes
  • Loading branch information
mikededo authored Nov 24, 2024
1 parent a4c64d7 commit f8a155a
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,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 @@ -200,6 +200,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

0 comments on commit f8a155a

Please sign in to comment.