Replies: 1 comment 1 reply
-
seems like you want to setup multi key hints, local wk = require("which-key")
wk.register({
n = { name = "Tree prefix", t = { name = "tree", t = "toggle" } },
}, { prefix = "<leader>" }) so in your case you should do local wk = require("which-key")
wk.register(
{
["<leader>g"] = {name = "toggle", c = "Comments" },
}
) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have the following settings for which-key:
Which in general works well, however, my nvim-comment entry in which-key looks like this:
c ➜ set operatorfunc=CommentOperatorg@
. I would like to have it look likec ➜ Comment
. I expected the the default settings of wk in the README sets up this description, but it doesn't work for me. Addinggc
operator explicitly doesn't help either:I would also love to have nice description for tree sitter text objects, e.g. change
f ➜ Select textobject @function.inner
tof ➜ Select function body
.Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions