Skip to content

Commit a203d41

Browse files
committed
feat(extensions): add picker support for snacks
1 parent d2578fa commit a203d41

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

lua/cyberdream/extensions/snacks.lua

+18
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,26 @@ function M.get(opts, t)
4949
SnacksDashboardTerminal = { link = "SnacksNormal" },
5050
SnacksDashboardSpecial = { link = "Special" },
5151
SnacksDashboardTitle = { link = "Title" },
52+
53+
SnacksPickerDir = { fg = t.grey },
54+
SnacksPickerMatch = { fg = t.cyan },
55+
SnacksPickerTotals = { fg = t.cyan, bold = true },
56+
SnacksPickerPrompt = { fg = t.blue, bold = true },
5257
}
5358

59+
if opts.borderless_telescope then
60+
highlights.SnacksPickerBorder = { fg = t.bg_alt, bg = t.bg_alt }
61+
highlights.SnacksPickerNormal = { bg = t.bg_alt }
62+
highlights.SnacksPickerBox = { bg = t.bg_alt }
63+
highlights.SnacksPickerList = { bg = t.bg_alt }
64+
highlights.SnacksPickerInput = { bg = t.bg_alt }
65+
highlights.SnacksPickerPreview = { bg = t.bg_alt }
66+
highlights.SnacksPickerBoxTitle = { fg = t.bg_solid, bg = t.blue }
67+
highlights.SnacksPickerPreviewTitle = { fg = t.bg_solid, bg = t.green }
68+
highlights.SnacksPickerListTitle = { fg = t.bg_solid, bg = t.magenta }
69+
highlights.SnacksPickerInputTitle = { fg = t.bg_solid, bg = t.cyan }
70+
end
71+
5472
return highlights
5573
end
5674

0 commit comments

Comments
 (0)