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
I have searched the existing issues of which-key.nvim
I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
NVIM v0.9.2
Operating system/version
Fedora 39
Describe the bug
I am unable to get the following keymap descriptions to be captured by which-key. I have read a bit about how modes are handled, however the following bindings below aren't being shown in the which-key dialogue.
init.vim:
" copy into system bufferxnoremap<leader>y "+ynnoremap<leader>Y "+Y
which-key.lua
localwk=require("which-key")
wk.register({
f= {
name="file", -- optional group namef= { "<cmd>Telescope find_files<cr>", "Find File" }, -- create a binding with labelr= { "<cmd>Telescope oldfiles sort_lastused=true ignore_current_buffer=true <cr>", "Open Recent File", noremap=false},
-- additional options for creating the keymapn= { "New File" }, -- just a label. don't create any mappinge="Edit File", -- same as above
["1"] ="which_key_ignore", -- special label to hide it in the popupb= { function() print("bar") end, "Foobar" } -- you can also pass functions!
},
g= {
name="Neogit",
mode={'n', 'x'},
g= { "status" },
l= { "Copy git permalink to clipboard", mode={'n', 'x'}},
L= { "Copy git permalink to clipboard", mode={'n', 'x'}},
},
p= {
name="Project",
p= { "projects" },
s= { function() require("telescope.builtin").grep_string({
search=vim.fn.input("Grep > " ) })
end, "find" }
},
s= {
name="Search",
f= { "<cmd>Telescope find_files<cr>", "Search File Names" }, -- create a binding with labelp= { "<cmd>Telescope grep_string<cr>", "Search Project" },
},
o= {
name="Open",
p= { "projects" }
},
b= {
name="Buffers",
b= { "list" },
k= { "kill" }
},
Y= {
name="Yank line to system buffer",
mode='n'
},
["<"] ="buffers",
},
{
prefix="<leader>",
mode='n'
})
wk.register({
['y'] = {
name="Yank to system buffer"
},
},
{
mode='x',
prefix="<leader>"
})
Steps To Reproduce
Create the following keymaps in init.vim
Add the following mapping definitions to whick-key
Source configs and enter visual mode and press <LEADER>
Bindings aren't picked up in the dialogue.
Expected Behavior
I should see the keymaps
Repro
N/A
The text was updated successfully, but these errors were encountered:
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.9.2
Operating system/version
Fedora 39
Describe the bug
I am unable to get the following keymap descriptions to be captured by
which-key
. I have read a bit about how modes are handled, however the following bindings below aren't being shown in the which-key dialogue.init.vim:
which-key.lua
Steps To Reproduce
init.vim
<LEADER>
Expected Behavior
I should see the keymaps
Repro
The text was updated successfully, but these errors were encountered: