Custom snacks icon picker icon_sources #1891
Replies: 1 comment 2 replies
-
opts = {
picker = {
sources = {
icons = {
finder = function(opts, ctx)
local icons = require('snacks.picker.source.icons').icons(opts, ctx)
-- Insert new items
vim.print(icons)
return icons
end, |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
cmvanb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Snacks.nvim community,
I'm trying to configure my icon picker to accept a new icon_source containing common unicode characters with descriptions: https://gist.github.com/bvincent1/cc1b0391c611d8501bad8e2780060d25
However I'm a bit stuck. If I look at the snacks.nvim source code it appears as if the icon sources are hard coded: https://github.com/folke/snacks.nvim/blob/main/lua/snacks/picker/source/icons.lua
Has anyone configured a custom icon source?
Beta Was this translation helpful? Give feedback.
All reactions