David-Kunz / gen.nvim

Neovim plugin to generate text using LLMs with customizable prompts
The Unlicense
992 stars 64 forks source link

Possible cmp integration #8

Closed JoseConseco closed 7 months ago

JoseConseco commented 9 months ago

Is there any chance for cmp integration ? I saw this video tutorial about making sources for cmp. It would require special mode with inline completion suport eg. this one https://huggingface.co/TheBloke/CodeLlama-13B-Instruct-GGML - support infilling. I may try to code this with some help

David-Kunz commented 9 months ago

Hi @JoseConseco ,

Great suggestion! I think code completion requires a lot of work, especially in determining the right context. There is this project for VSCode. It uses the same CoPilot extension, but uses a local LLM as a backend. Maybe something similar can be achieved in Neovim, too.

David-Kunz commented 7 months ago

Hi @JoseConseco ,

After more consideration I decided to not enable a cmp integration, I'll leave this to more specialized plugins. I keep this plugin as minimal as possible.

Best regards, David