zbirenbaum / copilot-cmp

Lua plugin to turn github copilot into a cmp source
MIT License
1.13k stars 41 forks source link

Candidates with multiple lines doesn't appear #87

Closed MKrbm closed 1 year ago

MKrbm commented 1 year ago

Usually, if I write a comment like --function receives list of number and returns their sum

It generates

image

with configs image


However, if I use copilot-cmp no corresponding shows.

image

Instead, only single line will be generated

image

with configs

image


How can I generate similarly as I do without copilot-cmp?

zbirenbaum commented 1 year ago

Multiline should work out of the box, but I've been noticing a strange occurrence where some multiline completions appear but not others. I think it is something relating to cmp because the completions are provided to it. I'll look into it.

MKrbm commented 1 year ago

So is it supposed to generate the same code with normal copilot? Apparently not though.

yakiimo23 commented 1 year ago

I am experiencing the same problem. I have tried different settings, but the result is the same.

zbirenbaum commented 1 year ago

There seems to have been a change in cmp which invalidated a previously working way of specifying ranges for a completion. I have changed formatting to comply with the spec and multiline completions appear again.

yakiimo23 commented 1 year ago

Multi-line candidates are now displayed! Thank you very much!

image