Closed Myzel394 closed 3 months ago
+1
If you are using custom mappings using which key itself, just pass which_key_ignore
label in the name/desc of the command , it's in the mappings section of the readme.
@arpangreat Thank you.
For the record, this works for me:
local opts = { noremap = true, silent = true, desc = "which_key_ignore" }
vim.api.nvim_set_keymap("n", "<leader>1", ":BufferLineGoToBuffer 1<CR>", opts)
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Did you check the docs?
Is your feature request related to a problem? Please describe.
Given the following maps:
it's obvious for me what
<leader>
+ number does. I'd like to be able to exclude them from showing up inwhich-key
.Describe the solution you'd like
Add an option to make fields hidden.
Describe alternatives you've considered
I tried to add them to
hidden
using:and also tried to create a custom mapping as instructed in https://github.com/folke/which-key.nvim#%EF%B8%8F-mappings but the key was still shown.
Additional context
No response