Skip to content

Commit

Permalink
feat(extensions): add picker support for snacks
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmckendry committed Feb 6, 2025
1 parent cb717f8 commit 82dbae6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lua/cyberdream/extensions/snacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,26 @@ function M.get(opts, t)
SnacksDashboardTerminal = { link = "SnacksNormal" },
SnacksDashboardSpecial = { link = "Special" },
SnacksDashboardTitle = { link = "Title" },

SnacksPickerDir = { fg = t.grey },
SnacksPickerMatch = { fg = t.cyan },
SnacksPickerTotals = { fg = t.cyan, bold = true },
SnacksPickerPrompt = { fg = t.blue, bold = true },
}

if opts.borderless_telescope then
highlights.SnacksPickerBorder = { fg = t.bg_alt, bg = t.bg_alt }
highlights.SnacksPickerNormal = { bg = t.bg_alt }
highlights.SnacksPickerBox = { bg = t.bg_alt }
highlights.SnacksPickerList = { bg = t.bg_alt }
highlights.SnacksPickerInput = { bg = t.bg_alt }
highlights.SnacksPickerPreview = { bg = t.bg_alt }
highlights.SnacksPickerBoxTitle = { fg = t.bg_solid, bg = t.blue }
highlights.SnacksPickerPreviewTitle = { fg = t.bg_solid, bg = t.green }
highlights.SnacksPickerListTitle = { fg = t.bg_solid, bg = t.magenta }
highlights.SnacksPickerInputTitle = { fg = t.bg_solid, bg = t.cyan }
end

return highlights
end

Expand Down

0 comments on commit 82dbae6

Please sign in to comment.