David-Kunz / gen.nvim

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

ask for diff mode #18

Closed ayoubelmhamdi closed 7 months ago

ayoubelmhamdi commented 8 months ago

Vim/Neovim has the best diff editor, which is easy to use to display and accept some chunks from a diff between two texts. However, I haven't found any plugin in Neovim that provides me with the generated text from ChatGPT in a diff format.

David-Kunz commented 8 months ago

Hi @ayoubelmhamdi ,

Thank you for this interesting suggestion! The way I usually work is to just apply the generated output and use e.g. my git integration to show me the differences, in case I need to see it.

https://github.com/lewis6991/gitsigns.nvim

What do you think?

Thank you again and best regards, David

David-Kunz commented 7 months ago

Hi @ayoubelmhamdi ,

After thinking a bit more about this feature, I decided to not integrate it into gen.nvim. I want to keep it as a minimal plugin. To see the diff, you can commit your project to git and use other plugins to show the diff, e.g. https://github.com/sindrets/diffview.nvim or https://github.com/lewis6991/gitsigns.nvim.

Best regards, David

ayoubelmhamdi commented 7 months ago

That's accepted, i will try to get the same diff that this clone of vscode provide it (cursor)[https://cursor.sh/]

image

Submit:

image