You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realize that if I set require("which-key").add() in init spec (lazy.nvim).
Lazy.nvim will set their keys spec first then run init function contains add().
But after the plugin loaded, its keys spec will run again, override add() keymaps.
Sound pointless to wire things like this but,
I want the lazy plugin get loaded by keymap "A" (through keys spec).
The keys spec cant set icon for keymap (that I know of).
I have to set the icon of keymap "A" through add() function so I have to set it through init spec without loading the plugin.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I realize that if I set require("which-key").add() in init spec (lazy.nvim).
Lazy.nvim will set their keys spec first then run init function contains add().
But after the plugin loaded, its keys spec will run again, override add() keymaps.
Sound pointless to wire things like this but,
Beta Was this translation helpful? Give feedback.
All reactions