fix(icons): pattern match should take precedence over plugin
Description
Otherwise all plugin keymaps are forced to use the same icon, can't be granularly customized. This seems to fix a bunch of icons on LazyVim.
E.g. adding an undotree pattern match for Snacks.picker.undo() (#936 😉) is ignored because plugin snacks.nvim was already matched and handled. Thus, all snacks pickers are forced to use the same icon.
Related Issue(s)
N/A
Screenshots
<leader> Before
<leader> After
<leader>g Before
<leader>g After
<leader>s Before
<leader>s After
<leader>f Before
<leader>f After
<leader>u Before
<leader>u After
@folke if/when you have a chance, mind taking a look at this one?
Wanted to chime in and say that I was just looking for a solution to this! I was getting annoyed at all the little candy icons in my which-key window as I have maybe 20 different searches with snacks pickers. Adding a bunch of custom rules just to override this (what I may even call a bug) was a chore. Nice PR!
This PR is stale because it has been open 30 days with no activity.
@folke any interest in getting this merged?
I also have #936, #939 and #940 awaiting your review if you'd like to tackle a few at once, they're tiny.