which-key.nvim
which-key.nvim copied to clipboard
`which_key_ignore` doesn't work
I am using vim-xkbswitch plugin for language switching. and it adds new mappings which I would like to hide.
But which_key_ignore
label doesn't work. Other labels work: I steel can add a description but can't hide it.
which_key.register{
gh = 'which_key_ignore',
gH = 'test description',
['g<C-H>'] = 'which_key_ignore'
}
I ran into this too. I didn't have time to attempt fixing the issue, but it looks like the source of the problem is around this area: https://github.com/folke/which-key.nvim/blob/bd4411a2ed4dd8bb69c125e339d837028a6eea71/lua/which-key/keys.lua#L104
It looks like k
is the actual escaped value, not the text friendly version. e.g. <C-P>
is actually an actual ^P
.