Closed mangelozzi closed 2 months ago
which-key does not show an exhaustive list of all Neovim mappings. There's simply too many.
Okay fair enough, but surely adding this to the options object is supposed to add the mapping to which key?
operators = {
gw = "Wrap lines",
}
To quote your README.md:
-- add operators that will trigger motion and text object completion
-- to enable all native operators, set the preset / operators plugin above
Note how it says "all native operators"
Yes there any many mappings, but there arent that many operators, just a hand full of them, and gf
and gw
are native operators.
seriously, just let it go. I'm not going to add every mapping. You can add it to your own config.
The impression I get is that you think I am trying to get you to add the mapping so I don't have. I understand you have created a lot of plugins, and don't have time to spend time babying people on how to use them. For your information I had already added this mapping before your reply, for anyone else:
wk.register({
-- Wrap text (built in) - default is gq, but requires textwidth to be none zero, built in, but does not show up in which key by default
gw = "Wrap text",
})
The reason I took the time to document the issue is because I actually thought it was a bug and was trying to help improve the software. I thought whichkey is supposed to help people learn mappings. The readme is technically incorrect and misleading and was trying to help any future people encountering the same problem. But I see now whichkey is not about learning new hotkeys, but rather it's about documenting which keys you wish to not forget.
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.11.0-dev-322+ge7020306a Build type: RelWithDebInfo LuaJIT 2.1.1716656478
Operating system/version
Ubuntu 22.04
Describe the bug
press g and wait for which key to pop up
w
will not be listed, butgw
is a very helpful motion for formatting text to say 80 chars (depends on textwidth).Add this to the options setup object didnt help either:
I had to do this to get which key to register it (map gw to gw and add a description):
Looking at the entire list of operator it is also missing
gf
, which is similar togw
. Maybe a good time to also addgc
for commenting (although it is in your README.md config.Steps To Reproduce
g
Expected Behavior
See something like
w -> format text
listedRepro