sg.nvim icon indicating copy to clipboard operation
sg.nvim copied to clipboard

Multi-line completions

Open a3lem opened this issue 2 years ago • 1 comments

I've been testing this plugin on and off. I'm mostly interested in Cody. On the whole I'd say the plugin experience is more cohesive than what's offered by currently available Copilot plugins for neovim.

There's just one thing that stands out as lacking: multiline completions, i.e. suggested completions can span multiple lines. Today, each line needs to be completed indivudally. For a long block of code, that translates to a lot of completion steps.

Judging by this comment under #171, I'm guessing this is something the plugin author(s) are already aware of. Just seemed handy to have a clearly named issue where I and others can follow the status of this feature's development. Feel free to close it as a duplicate, however.

a3lem avatar Jan 27 '24 11:01 a3lem

Also noticed this, could just be my config though, using cody with cmp.nvim It would be good to see a more detailed example of how to get multiline completion working if they are supposed to be in neovim

Doctor-Scott avatar Apr 01 '24 13:04 Doctor-Scott

With the latest updates, multi-line completions will trigger for certain filetypes. After #243 , we should see that expand as we'll be picking up more options from cody.

I'll close for now because multi-line completions are supported for many of the basic cases (you'll have to accept the completion to apply the multi-line completion)

tjdevries avatar May 25 '24 18:05 tjdevries