-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
possible ignore_missing bug #62
Comments
This is quite embarrassing. When the WK popup opens, we save the register used to perform the action, to feed it back once we have a full key sequence. For some weird reason I figured it was a good idea to do this with Pasting also miserably failed since the Either way, this is simply not needed in Should be working as expected now. With or without |
Maybe it's not fixed ... This could be related, in insert mode, my custom mapping for <esc> is qq. If I only write one "q" (so I don't escape), "<c-r>+q" is output. EDIT: wait, I didn't realize you responded 1 hour ago. I just updated Whichkey. It works! With and without |
@folke Absolutely no need for embarrassment. I appreciate the fix. Hey, just curious, since you're from Belgium, is your native tongue Dutch or French? |
@rmagillxyz dutch 🙂 |
ignore_missing = true,
marks = false,
registers = false,
spelling = false,
presets = {
operators = false,
motions = false,
text_objects = false,
windows = false,
nav = false,
z = false,
g = false,
},
|
@Maswor ignore_missing is a top level options, please refer to the docs |
@folke : I did, mine is basically like this: use {
"folke/which-key.nvim",
config = function()
vim.opt.timeoutlen=500
local wk = require("which-key")
wk.setup {
ignore_missing = true,
marks = false,
registers = false,
spelling = false,
presets = {
operators = false,
motions = false,
text_objects = false,
windows = false,
nav = false,
z = false,
g = false,
},
layout = {
height = { min = 1, max = 25 },
width = { min = 1, max = 100 },
spacing = 3,
align = "center",
},
window = {
border = "double",
position = "bottom",
margin = { 0, 0, 0, 0 },
padding = { 0, 0, 0, 0 },
},
}
wk.register({
name = 'Single level map',
a = 'Actions',
b = 'Buffer',
c = 'Command',
d = 'Diagnostics',
f = 'Files',
g = 'Grep',
i = 'Lines',
l = 'CocList',
o = 'Outline',
r = 'Resume Coc',
s = 'Symbols',
e = 'Explorer',
m = 'Commit',
t = 'Commits',
}, {prefix = " "})
} |
@Maswor again, please check the docs. Presets etc should be under plugins, not top-level. The docs describe exactly what structure is expected. Anything else won't work. |
I've got it working now. Thank you! |
While
ignore_missing = true
and in insert mode, a single press of the<LocalLeader>
key outputs<c-r>+<LocalLeader>
.e.g. If LocalLeader is set to
,
,<c-r>+,
is output, and changing the local key just changes the last output char, but if an actual local leader binding is used it works as expected.the binding causing this is
<Cmd>lua require("which-key").show(",", {mode = "i", auto = true})<CR>
I was able to fix this and stop the output by setting the triggers array to anything but auto.
The text was updated successfully, but these errors were encountered: