Skip to content

Commit

Permalink
feat(snacks): hl groups for upcoming plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 7, 2024
1 parent 17ec71c commit f0c4046
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lua/tokyonight/groups/snacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ M.url = "https://github.com/folke/snacks.nvim"
---@type tokyonight.HighlightsFn
function M.get(c, opts)
-- stylua: ignore
return {
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 },
Expand Down Expand Up @@ -39,11 +39,17 @@ function M.get(c, opts)
-- 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",
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 },
}
for i, color in ipairs(c.rainbow) do
ret["SnacksIndent" .. i] = { fg = color, nocombine = true }
end
return ret
end

return M

0 comments on commit f0c4046

Please sign in to comment.