CopilotChat.nvim
CopilotChat.nvim copied to clipboard
Copilot Edits
Hey In VSCode, there’s an integration with Copilot where you can send a request in a chat, and it actually edits the file for you (not just generating code, but creating or modifying specific files when asked).
Is there any way to achieve something similar with this plugin?
Here’s a screenshot for reference:
Obs: I don't want to move to VSCode, so please help me out haha.
This would be an awesome feature. I've been using VS Code in the last week because of this, but I miss Neovim a lot. If this was implemented it would be a dream come true.
+1 for that. Maybe we can achieve something similar with the agents right now? From the documentation I haven't figured out how to add more agents besides default none agent
If you use #filenames then the plugin can already grab files it needs, what exactly is missing here?
If you use #filenames then the plugin can already grab files it needs, what exactly is missing here?
A way for it to replace/fix code directly.
by this plugin, not only echo the suggestings, but can modify the code in the file, give us choices to accept or reject ?
What about the new Agent mode? I would say that is more useful than the Edit mode.
#1029 implements "agent" mode (except all agent mode rly does is just sends tools to LLM, and #1029 implements that). But the PR still has some TODOs that I need to fix first, but you can try it even now if you want to
Awesome @deathbeam , I will have a look.
Just so I understand that PR fully: Does it enable functionality similar to setting vscode Copilot Chat to Agent mode?
Meaning, does it enable full LLM autonomy, calling tools as needed, iterating on itself, finding files it needs, adding changes directly to files, fixing errors it creates, searching for files via indexed workspace (not exclusive to Agent mode), etc.?
I just want to make sure I understand the limitations, in case that new PR does not quite make this plugin as capable as vscode's Agent mode.
Thank you again!
Awesome @deathbeam , I will have a look.
Just so I understand that PR fully: Does it enable functionality similar to setting vscode Copilot Chat to Agent mode?
Meaning, does it enable full LLM autonomy, calling tools as needed, iterating on itself, finding files it needs, adding changes directly to files, fixing errors it creates, searching for files via indexed workspace (not exclusive to Agent mode), etc.?
I just want to make sure I understand the limitations, in case that new PR does not quite make this plugin as capable as vscode's Agent mode.
Thank you again!
Yes. But the plugin do not provides edit file tools in its built in @copilot group, so it can only iterate on finding data with built in tools and suggest edits in normal markdown edit way. But you can use MCP server that provides file edits, like https://github.com/ravitemer/mcphub.nvim in its @neovim server (example of integration with mcphub is in the PR description)
So any limitation you see can be solved by MCP servers mostly or extra tools from somewhere else, and the PR adds necessary support for that.