which-key.nvim
which-key.nvim copied to clipboard
Is there a way to extend `wk` from another plugin?
The idea is that if wk is installed by the user of the plunging then it will get the shortcuts documented but without making wk a hard dependency of it.
I'd rather like if neovim was providing the way to document shortcuts and retrieve that documentation by plugins
One can dream but in the meantime, that's something doable from the plugin (as it has some default ones documented already)
Well you can just pcall(require, 'which-key') and then set keybindings using which-key if it is present.
Well you can just
pcall(require, 'which-key')and then set keybindings using which-key if it is present.
Does this allow to extend or just to overwrite the existing maps? Let's assume the plugin has its maps under