Skip to content

Commit 28cde1c

Browse files
committed
feat(extensions): add snacks.nvim
1 parent 7e6feb4 commit 28cde1c

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

lua/cyberdream/config.lua

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ local M = {}
4848
---@field noice? boolean
4949
---@field notify? boolean
5050
---@field rainbow_delimiters? boolean
51+
---@field snacks? boolean
5152
---@field telescope? boolean
5253
---@field treesitter? boolean
5354
---@field treesittercontext? boolean
@@ -101,6 +102,7 @@ local default_options = {
101102
neogit = true,
102103
notify = true,
103104
rainbow_delimiters = true,
105+
snacks = true,
104106
telescope = true,
105107
treesitter = true,
106108
treesittercontext = true,

lua/cyberdream/extensions/snacks.lua

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
local M = {}
2+
3+
--- Get extension configuration
4+
--- @param opts Config
5+
--- @param t CyberdreamPalette
6+
function M.get(opts, t)
7+
opts = opts or {}
8+
local highlights = {
9+
SnacksNormal = { link = "NormalFloat" },
10+
SnacksWinBar = { link = "Title" },
11+
SnacksBackdrop = { fg = "NONE", bg = "NONE" },
12+
SnacksNormalNC = { link = "NormalFloat" },
13+
SnacksWinBarNC = { link = "SnacksWinBar" },
14+
15+
SnacksNotifierDebug = { fg = t.fg },
16+
SnacksNotifierBorderDebug = { fg = t.bgHighlight },
17+
SnacksNotifierIconDebug = { fg = t.grey },
18+
SnacksNotifierTitleDebug = { fg = t.grey },
19+
20+
SnacksNotifierError = { link = "SnacksNotifierDebug" },
21+
SnacksNotifierBorderError = { link = "SnacksNotifierBorderDebug" },
22+
SnacksNotifierIconError = { fg = t.red },
23+
SnacksNotifierTitleError = { fg = t.red },
24+
25+
SnacksNotifierInfo = { link = "SnacksNotifierDebug" },
26+
SnacksNotifierBorderInfo = { link = "SnacksNotifierBorderDebug" },
27+
SnacksNotifierIconInfo = { fg = t.blue },
28+
SnacksNotifierTitleInfo = { fg = t.blue },
29+
30+
SnacksNotifierTrace = { link = "SnacksNotifierDebug" },
31+
SnacksNotifierBorderTrace = { link = "SnacksNotifierBorderDebug" },
32+
SnacksNotifierIconTrace = { fg = t.purple },
33+
SnacksNotifierTitleTrace = { fg = t.purple },
34+
35+
SnacksNotifierWarn = { link = "SnacksNotifierDebug" },
36+
SnacksNotifierBorderWarn = { link = "SnacksNotifierBorderDebug" },
37+
SnacksNotifierIconWarn = { fg = t.yellow },
38+
SnacksNotifierTitleWarn = { fg = t.yellow },
39+
}
40+
41+
return highlights
42+
end
43+
44+
return M

0 commit comments

Comments
 (0)