CopilotC-Nvim / CopilotChat.nvim

Chat with GitHub Copilot in Neovim
https://copilotc-nvim.github.io/CopilotChat.nvim/
GNU General Public License v3.0
1.65k stars 73 forks source link

Response Callback #312

Closed DRKolev-code closed 5 months ago

DRKolev-code commented 5 months ago

I am trying to save the chat in a file after each response. For some reason when CopiltChatSave is present in the callback function the callback function is only called once in a minute or so.

I can manually spam : CopilotCatSave test and it works every time. What am I missing with the callback approach?

callback = function()
    require("CopilotChat").save("test")
    print("Chat saved to: test")
end, -- Callback to use when ask response is received