Closed TroySigX closed 1 year ago
It looks like for plugins like trouble
, instead of triggering loading plugin using the keys
property in lazy
, I need to trigger by cmd
You're defining the keymap with which-key, and are then also trying to lazy-load on the same keymap. That can't work.
You can just define the keymap fully with lazy.
Or alternatively, define it with which-key, remove the lazy key handler and lazy load on cmd instead.
You can't do both
Did you check docs and existing issues?
Neovim version (nvim -v)
0.9.1
Operating system/version
6.3.9-arch1-1
Describe the bug
Setting some keymaps using
which-key
for some lazy-loaded plugins causes some problems: When the plugin is triggered to load, if the mapped command is VimScript, the command cannot be executed.Steps To Reproduce
<F1>
Expected Behavior
should be able to execute the command
Repro