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

Bug: selecting the cmp autocompletion automatically inserts and closes the floating window #192

Open
arnevm123 opened this issue Jan 18, 2024 · 2 comments

Comments

@arnevm123
Copy link

arnevm123 commented Jan 18, 2024

Hi,

I have these setting with cmp:

mapping = cmp.mapping.preset.insert({
	["<C-n>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }),
	["<C-p>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }),
....

When i use this with normal completion I can scroll the completion options with this, but when selecting a cody completion this closes my completion menu.
I got this while using nightly (NVIM v0.10.0-dev-2121+g06aebfa99), but not when using stable (v0.9.5)
I'm not quite sure if this is a Neovim issue, because it's only on nightly, or a cody issue, because I only get it with cody (or a cmp issue, who knows?).
Video for explanation (I just try to scroll through the options with ):

recording.mov
@arnevm123
Copy link
Author

imgur mirror for video, because it seems to be buggy:
https://imgur.com/nIEMj1y

@tjdevries
Copy link
Collaborator

oh, that's really interesting. Thanks for the video and repro steps. I will check it out!

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

No branches or pull requests

5 participants