jellydn / CopilotChat.nvim

Chat with GitHub Copilot in Neovim
GNU General Public License v3.0
100 stars 9 forks source link

Proposal to combine my fork with yours #21

Closed ziontee113 closed 8 months ago

ziontee113 commented 8 months ago

Hi @jellydn , I've been adding new features on my own to CopilotChat.nvim.

I made a ton of changes and didn't account for it to be public, so I just created a new repo, copy the core Copilot API from CopilotChat.nvim into the new repo and not fork the original project.

But now I see the original CopilotChat.nvim repo pointed to your fork, and it seems like you're gonna be quite active on the project, I think maybe we should work together actively on the same code base.

My project is currently here https://github.com/ziontee113/CopilotAgent.nvim I plan to make this into a super agent that can handle complex coding tasks, hence the name of the derived repo.

CopilotAgent and CopilotAgentVisual is basically like the original CopilotChat, but re-written with some new features. InplaceHandler purpose is to prompt copilot and replace code in place, like ChatGPT.nvim using popup windows. I also created new PopUp / Layout modules to handle such tasks like nui.nvim, but in Python.

Here's how I'm using it:

return {
    "ziontee113/CopilotAgent.nvim",
    config = function()
        vim.keymap.set({ "n" }, "<C-p>", ":CopilotAgent ", {})
        vim.keymap.set({ "x" }, "<C-p>", ":CopilotAgentVisual ", {})

        vim.keymap.set({ "x" }, "<C-S-i>", ":InplaceHandler<CR>", { silent = true })
        vim.keymap.set({ "x" }, "<C-A-i>", ":InplaceHandler<CR>", { silent = true })

        vim.keymap.set({ "n" }, "<C-S-l>", "<cmd>EchoPark<CR>", {})
        vim.keymap.set({ "n" }, "<C-S-p>", "<cmd>PriorityMatrix<CR>", {})
    end,
}

I'm still very inexperienced with collaborating with other people. If you want to we could join forces and make a great plugin together. Please let me know what you think. Thank you very much.

jellydn commented 8 months ago

Sounds amazing @ziontee113 Let's do it. Could you open the PR for CopilotAgent command?

What do you think? @gptlang.