This is a Neovim plugin that integrates with GitHub Copilot to provide enhanced vimdiff capabilities.
DiffCopilot.mov
DiffRequest.mov
To install this plugin, you can use your preferred plugin manager. For example,
using lazy.nvim:
{
"antonmry/diff_copilot.nvim",
dependencies = { "CopilotC-Nvim/CopilotChat.nvim", "jpalardy/vim-slime" },
config = true,
}Once installed, you can use the following commands to interact with the plugin:
:DiffCopilot- Asks for the prompt and directly opens the diff view with Copilot suggestions.:DiffRequest- Sends the content of the registryoas prompt and opens the diff view with Copilot suggestions. The registryois automatically populated with the content of/tmp/output.log.:SendR- Sends the content of the registryrto the terminal usingvim-slime.
SendR and DiffRequest are intended to be used with
antonmry/llm-helper-cli.
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License.