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

WhichKey recursion error on mouse drag #136

Closed
UncleGravity opened this issue Sep 30, 2024 · 2 comments
Closed

WhichKey recursion error on mouse drag #136

UncleGravity opened this issue Sep 30, 2024 · 2 comments

Comments

@UncleGravity
Copy link

When I enable nvim-scrollview, it causes which-key to show some strange behavior whenever I make visual selections with the mouse. If I drag the mouse enough times it eventually throws a recursion error:

Error detected while processing ModeChanged Autocommands for "*":
Recursion detected.
Are you manually loading which-key in a keymap?
Use `opts.triggers` instad.
Please check the docs.

Error disappears when I disable scrollview.

Kind of hard to describe so I made a recording.

test.mov

Tested on a fresh install of kickstart.nvim (straight from the repo, only added nvim-scrollview, no other changes) with the latest nvim nightly.

@UncleGravity
Copy link
Author

Just realized it has no thing to do with the mouse. If you enter visual mode and press-hold "j" or "k" the error shows up as well. Seems like I'm not the only one experiencing this:

folke/which-key.nvim#809 (comment)

So maybe this is a which-key specific regression?

@dstein64
Copy link
Owner

dstein64 commented Oct 8, 2024

Hi @UncleGravity. The plugin was causing ModeChanged events. I've put in updates that prevent this.

Let me know if the problem isn't resolved for you and I'll re-open this issue.

@dstein64 dstein64 closed this as completed Oct 8, 2024
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

2 participants