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

Weird interaction with nvim-cmp #18

Closed
IndianBoy42 opened this issue Oct 15, 2021 · 7 comments
Closed

Weird interaction with nvim-cmp #18

IndianBoy42 opened this issue Oct 15, 2021 · 7 comments

Comments

@IndianBoy42
Copy link

I just had a case where I use cmp to complete blac into blackjack and instead of inserting nicely its going all over the place. This doesn't happen if I disable better-escape.nvim. I believe that plugin uses TextChanged autocmds to detect the jk input, so perhaps it is triggering in the middle of nvim-cmp feeding the keys in? Is there anything that can be done to prevent this from happening?

@max397574
Copy link
Owner

It uses InsertCharPre to check
I'll have to look at nvim-cmp code to see how it inserts them

@max397574
Copy link
Owner

Can you send a gif?
I tried it and I don't have a problem. Perhaps you've done sth different.

@max397574
Copy link
Owner

Screen.Recording.2021-10-15.at.17.57.46.mov

@IndianBoy42
Copy link
Author

What do you recommend to use for screen recording like that on linux?

@max397574
Copy link
Owner

idk
I use mac xD

@IndianBoy42
Copy link
Author

Oh you know what, i use 'kj' not 'jk' with this plugin (actually both). 'blackjack' has a KJ in the middle of it which must be triggering it.

@max397574
Copy link
Owner

yes that's a problem.
You can't complete words which contain your mapping.

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