CopilotChat.nvim icon indicating copy to clipboard operation
CopilotChat.nvim copied to clipboard

Copilot Edits

Open viniciusteixeiradias opened this issue 8 months ago • 9 comments

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. Image

viniciusteixeiradias avatar Mar 22 '25 04:03 viniciusteixeiradias

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.

Axenide avatar Mar 22 '25 06:03 Axenide

+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

kuddai avatar Mar 28 '25 12:03 kuddai

If you use #filenames then the plugin can already grab files it needs, what exactly is missing here?

deathbeam avatar Mar 28 '25 13:03 deathbeam

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.

arty-hlr avatar Mar 28 '25 20:03 arty-hlr

by this plugin, not only echo the suggestings, but can modify the code in the file, give us choices to accept or reject ?

qistacker avatar Apr 13 '25 08:04 qistacker

What about the new Agent mode? I would say that is more useful than the Edit mode.

magnusriga avatar Apr 22 '25 22:04 magnusriga

#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

deathbeam avatar Apr 22 '25 22:04 deathbeam

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!

magnusriga avatar Apr 23 '25 11:04 magnusriga

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.

deathbeam avatar Apr 23 '25 12:04 deathbeam