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

Trying to get completions on new line #1272

Open
jiriks74 opened this issue Oct 29, 2022 · 0 comments
Open

Trying to get completions on new line #1272

jiriks74 opened this issue Oct 29, 2022 · 0 comments

Comments

@jiriks74
Copy link

Hello,
I'm currently using copilot-cmp plugin as that's probably the best way to make copilot work with cmp.

It works flawlessly, until you try to use copilot completions on a new line.

I'm not good at lua, I've just started learning it thanks to neovim, but I've been able to trigger the cmp popup if copilot had suggestions and the popup wasn't there. I've put it right before the plugin wrote copilot's completions to cmp, but the popup stayd full of some random completions with none of them being copilot's.

There's also an issue on the repo where they've been discussing it and figured that it cannot be done because of how cmp works internally or something.

Is something like this possible? From what I understand the plugin let's cmp be, until it get's a completion, then it writes it into the already opened popup. But that doesn't work for whatever reason if you manually triggered the popup with no character written on the line.

Could you please point me to where to look next? I'm still trying to understand all the cmp and lua stuff and hope to come with more info and code tomorrow.

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