Open jason0x43 opened 3 weeks ago
A way to specify a custom prefix in the item would also work, assuming the icon would be added onto that. Maybe. Something like
{
text = "path/to/file.js",
prefix = "H",
path = "path/to/file.js"
}
Thanks for the suggestion!
This looks like a reasonable use case. There is some work planned regarding icons in 'mini.nvim', so I think I'll revisit this feature during it.
Contributing guidelines
Module(s)
mini.pick
Description
I made a custom source to show git files with multiple scopes, along with the status, based on this comment. The items look like
That works great, except that file icons don't show up. The request is for
default_show
to show icons for file items based on the file path rather than the display text.The root issue is that
get_icon
indefault_show
is passed the text of each item rather than the entire item (or thepath
for file items).