-
Notifications
You must be signed in to change notification settings - Fork 441
/
snacks.lua
59 lines (55 loc) · 2.96 KB
/
snacks.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
local Util = require("tokyonight.util")
local M = {}
M.url = "https://github.com/folke/snacks.nvim"
---@type tokyonight.HighlightsFn
function M.get(c, opts)
-- stylua: ignore
local ret = {
SnacksNotifierDebug = { fg = c.fg, bg = opts.transparent and c.none or c.bg },
SnacksNotifierBorderDebug = { fg = Util.blend_bg(c.comment, 0.4), bg = opts.transparent and c.none or c.bg },
SnacksNotifierIconDebug = { fg = c.comment },
SnacksNotifierTitleDebug = { fg = c.comment },
SnacksNotifierError = { fg = c.fg, bg = opts.transparent and c.none or c.bg },
SnacksNotifierBorderError = { fg = Util.blend_bg(c.error, 0.4), bg = opts.transparent and c.none or c.bg },
SnacksNotifierIconError = { fg = c.error },
SnacksNotifierTitleError = { fg = c.error },
SnacksNotifierInfo = { fg = c.fg, bg = opts.transparent and c.none or c.bg },
SnacksNotifierBorderInfo = { fg = Util.blend_bg(c.info, 0.4), bg = opts.transparent and c.none or c.bg },
SnacksNotifierIconInfo = { fg = c.info },
SnacksNotifierTitleInfo = { fg = c.info },
SnacksNotifierTrace = { fg = c.fg, bg = opts.transparent and c.none or c.bg },
SnacksNotifierBorderTrace = { fg = Util.blend_bg(c.purple, 0.4), bg = opts.transparent and c.none or c.bg },
SnacksNotifierIconTrace = { fg = c.purple },
SnacksNotifierTitleTrace = { fg = c.purple },
SnacksNotifierWarn = { fg = c.fg, bg = opts.transparent and c.none or c.bg },
SnacksNotifierBorderWarn = { fg = Util.blend_bg(c.warning, 0.4), bg = opts.transparent and c.none or c.bg },
SnacksNotifierIconWarn = { fg = c.warning },
SnacksNotifierTitleWarn = { fg = c.warning },
-- Dashboard
SnacksDashboardDesc = { fg = c.cyan },
SnacksDashboardFooter = { fg = c.blue1 },
SnacksDashboardHeader = { fg = c.blue },
SnacksDashboardIcon = { fg = c.blue1 },
SnacksDashboardKey = { fg = c.orange },
SnacksDashboardSpecial = { fg = c.purple },
SnacksDashboardDir = { fg = c.dark3 },
-- Profiler
SnacksProfilerIconInfo = { bg = Util.blend_bg(c.blue1, 0.3), fg = c.blue1 },
SnacksProfilerBadgeInfo = { bg = Util.blend_bg(c.blue1, 0.1), fg = c.blue1 },
SnacksScratchKey = "SnacksProfilerIconInfo",
SnacksScratchDesc = "SnacksProfilerBadgeInfo",
SnacksProfilerIconTrace = { bg = Util.blend_bg(c.blue7, 0.3), fg = c.dark3 },
SnacksProfilerBadgeTrace = { bg = Util.blend_bg(c.blue7, 0.1), fg = c.dark3 },
SnacksIndent = { fg = c.fg_gutter, nocombine = true },
SnacksIndentScope = { fg = c.blue1, nocombine = true },
SnacksZenIcon = { fg = c.purple },
SnacksInputIcon = { fg = c.blue1 },
SnacksInputBorder = { fg = c.yellow },
SnacksInputTitle = { fg = c.yellow },
}
for i, color in ipairs(c.rainbow) do
ret["SnacksIndent" .. i] = { fg = color, nocombine = true }
end
return ret
end
return M