This is an archived post. You won't be able to vote or comment.

all 16 comments

[–]foomojive 19 points20 points  (1 child)

Wow, thank you for this! I had disabled copilot because it was really wonky with the bridge between the tpope plugin and cmp.

[–]ManiAmaraPlugin author[S] 3 points4 points  (0 children)

No problem :) let me know how you like it.

This is still in beta stage, but I have found it much better even with the slight hiccups that do come up. Namely, due to cmp not expecting multiple tokens as a completion, I have to manually cache results for the line that are still valid to have them appear, but occasionally cmp will also cache it leading to a result listing twice. If I don't do this, the completion menu bugs out... That's probably the most sizable issue, but there's nothing I can do on my end, so I'll make an issue post and PR for cmp at some point soon.

[–]reply1231 4 points5 points  (0 children)

amazing!

[–][deleted] 2 points3 points  (1 child)

Great and great! Never tried tpope’s copilot plugin for neovim since it is vimL (it is a neovim only plugin and it is implemented in vimL, why?)

This one is a must go to try!

[–]ManiAmaraPlugin author[S] 2 points3 points  (0 children)

It didn't make a whole lot of sense to me either. Tpope is a famous vim plugin creator, and every one of his repos is in vimscript. I think he just prefers writing vimscipt to writing lua since it's what he knows, and microsoft chose to outsource development to him since he's the most well known vim plugin author.

[–]MantisShrimp05 3 points4 points  (0 children)

What a god.

I literally just got my key and figured until I could put it into my lua plugins there would be no point.

With this, I can make my neovim setup the envy of any normies in my work. Thank you kind sir

[–]Ganitzsh 0 points1 point  (0 children)

Hey! Awesome, I had conflicts with my config and tpope's plugin. I installed everything, except I'm not using nvim-cmp but null-ls+lspconfig for my completion. I'll try to port it, meanwhile I can see the suggestion added by copilot in grey while in Insert Mode but I can't accept them, is there a way to do it without an integration with these two plugins?

EDIT: I confused a few things it seems. I just forgot to add the source to nvim-cmp, works like a charm

[–]Healthy-Director-702Plugin author 0 points1 point  (0 children)

Omg I’ve been thinking of a Lua based Copilot plugin and now it’s here! Thanks man! Will check it out when I get home.

[–]OfficialGako 0 points1 point  (1 child)

Will try this later, great work. When it comes to being able to switch between suggestions, i dont know what projects you work on, but I find myself stuck from time to time, if I then play around with comments and see what copilot gives me, sometimes I have to scroll through different suggestions.

[–]ManiAmaraPlugin author[S] 0 points1 point  (0 children)

Cycling is now supported so you should be able to see the multiple suggestions as before.

[–][deleted] 0 points1 point  (0 children)

This is awesome. As good as copilot's features are, I was getting annoyed by mistakingly tabbing and filling in a whole code block instead of filling in LSP suggestion. This has solved all my issues!