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
for i = 1, 9 do
local lhs = string.format("<Leader>%d", i)
local rhs = string.format(":%dwincmd w<CR>", i)
vim.api.nvim_set_keymap('n', lhs, rhs, {noremap = true, silent = true, desc = '{}'})
end
Unfortunately this makes whichkey show me these 9 mappings after pressing the leader key. I couldn't figure a way to disable this behavior. Any ideas? Thanks!
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
-
I have a mapping for easy navigation like this:
Unfortunately this makes whichkey show me these 9 mappings after pressing the leader key. I couldn't figure a way to disable this behavior. Any ideas? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions