if you use lazy.nvim, then some icons will be autodetected for keymaps belonging to certain plugins.
custom rules to decide what icon to use
in your mapping spec, you can specify what icon to use at any level, so at the node for <leader>g for example, to apply to all git keymaps.
prevent which-key overlapping with the cursor position
improved API. One of my favorite new keymaps is <leader>? that shows which-key for the current buffer, but only with buffer-local mappings. So basically the help for all keymaps defined by a plugin :)
new and better mappings spec, more in line with vim.keymap.set and how you define keymaps with lazy.nvim
Todo
[x] create keymaps in register()
[x] distinction between actual keymap and just a desc
[x] virtual mappings wihtout real children?
[x] registers / counts?
[x] presets / plugins
[x] config?
[x] auto blacklist single keys for default keymaps (for mappings like aa, a hook would be created for a and a would be ignored)
[x] custom sorting
[x] gr doesn't work because of grn and friends
[x] same for gc opmode and gc normal mode
[x] yank and shift-paste hangs
[x] macro recording / macro execution
[x] spell
[x] spell with count, like 1z=
[x] which-key-ignore
[x] empty groups?
[x] timeoutlen and nowait
[x] ui presets
[x] ui opts & columns etc
[x] scroll window
[x] help text?
[x] plugin layout?
[x] ✅ 🔥🔥🚀
[x] minimize attach
[x] sometimes incorrectly attached gcc not working
[x] error handling for view
[x] spelling layout
[x] better mappings parser? Especially needs typings
What's New?
visual
andoperator pending
mode is now done usingModeChanged
, so no remapping needed anymore for operators.g
andz
. All other letters are unsafe.delay
independent oftimeoutlen
. Can be0
.classic
,modern
andhelix
mode.local
,order
,group
,alphanum
,mod
,lower
,icase
,desc
,manual
x
keymapskey
anddesc
. The defaultkey
formatter shows actual unicode keyboard keys.lazy.nvim
, then some icons will be autodetected for keymaps belonging to certain plugins.<leader>g
for example, to apply to all git keymaps.<leader>?
that shows which-key for the current buffer, but only with buffer-local mappings. So basically the help for all keymaps defined by a plugin :)vim.keymap.set
and how you define keymaps with lazy.nvimTodo
aa
, a hook would be created fora
anda
would be ignored)1z=
gcc
not workingv
<leader>gh_
Related Issue(s)
Screenshots
Classic Mode
Modern Mode
Helix Mode