mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
feat(picker): added new icons
picker for nerd fonts and emoji. Closes #703
This commit is contained in:
parent
570d2191d5
commit
97898e910d
6 changed files with 138 additions and 2 deletions
|
@ -66,6 +66,11 @@ Snacks.util.set_hl({
|
|||
GitStatusUntracked = "SnacksPickerGitStatus",
|
||||
ManSection = "Number",
|
||||
ManPage = "Special",
|
||||
-- Icons
|
||||
Icon = "Special",
|
||||
IconSource = "@constant",
|
||||
IconName = "@keyword",
|
||||
IconCategory = "@module",
|
||||
-- LSP Symbol Kinds
|
||||
IconArray = "@punctuation.bracket",
|
||||
IconBoolean = "@boolean",
|
||||
|
|
|
@ -272,6 +272,16 @@ M.highlights = {
|
|||
preview = "preview",
|
||||
}
|
||||
|
||||
---@class snacks.picker.icons.Config: snacks.picker.Config
|
||||
---@field icons? string[]
|
||||
M.icons = {
|
||||
icons = { "nerd_fonts", "emoji" },
|
||||
finder = "icons",
|
||||
format = "icon",
|
||||
layout = { preset = "vscode" },
|
||||
confirm = "put",
|
||||
}
|
||||
|
||||
M.jumps = {
|
||||
finder = "vim_jumps",
|
||||
format = "file",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue