which-key.nvim
which-key.nvim copied to clipboard
Keymap description not being overwritten
I have a keymap set for LSP document formatting that is applied to a buffer using on_attach
.
When looking at WhichKey, it seems to still be using the description for a default command.
Any idea why my description isn't being applied?
vim.keymap.set({ 'n', 'v' }, 'gf', formatting.format_document, {
desc = 'Format document',
})
Right, I know what's happening here. Any description set through WhichKey takes precedence, but it shouldn't do this in this particular case.
Will look into this.
I'm also experiencing this issue. I'm no expert with lua but I'm happy to take a look if you have any pointers where to start?
Any updates on this bug?
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
I think this is still a bug.