Skip to content
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

Question: suppress msg coming from a mapping done in other mode on leader key #75

Closed
ajitid opened this issue May 16, 2021 · 3 comments
Closed
Labels

Comments

@ajitid
Copy link

ajitid commented May 16, 2021

I've made a binding to Space key in insert mode that also acts like my leader key. Because of this it gives me a message:

image

I'm not entirely sure how to solve this. I tried putting custom insert mode mapping in which key config, that didn't worked. And which_key_ignore didn't worked for me either.

My current minimal which-key config:

local wk = require("which-key")

wk.setup {
	triggers = {"<leader>"},
}

wk.register({
	-- mappings
}, {prefix = "<leader>"})

That conflicting mapping which I've defined exists before which-key's setup call.

@ajitid
Copy link
Author

ajitid commented May 17, 2021

^ This will also happen if someone will use lexima.vim as it also keybinds on space.

I believe this issue is related to #73. If that's the case we can close this one.

@folke
Copy link
Owner

folke commented May 17, 2021

It's definitely related to #73, but in this case, the warning should not show.

I updated the code to only show that warning in NORMAL mode.

Let me know if you have any more issues!

@folke folke added the done label May 17, 2021
@ajitid
Copy link
Author

ajitid commented May 17, 2021

Yep, that commit fixes it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants