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

Which-key does not remove key registeres when edit which-key configs #1009

Closed
chenxin-yan opened this issue Jul 6, 2024 · 0 comments
Closed

Comments

@chenxin-yan
Copy link

chenxin-yan commented Jul 6, 2024

Describe the bug

When rewriting the which-keys mapping registers, I encountered some issues. It seems like once keymaps are registered, a key stays in the system, and I am not sure how to "deregister" it. Removing the line register "r" does not remove the keymap registered by which-key. For example, when I remove the key register for 'rename', the cursor moves to the right when I trigger <leader>r instead of doing nothing. I tried to debug it, so I ran :verbose map <leader>r, the output shows that which-key registered the keymap, and it stayed there despite the edit in my which-keys config file. I also tried to reinstall Neovim and the plugins, but the problem still exists.

Xnip2024-07-05_14-56-19

To Reproduce

  1. Remove the register for any of the keymaps in which-key config
  2. restart nvim
  3. press <leader>r

Desktop

  • OS: 14.4.1 (23E224)
  • Terminal: Iterm2/zsh

Neovim Version

NVIM v0.10.0

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

No branches or pull requests

1 participant