CopilotC-Nvim / CopilotChat.nvim

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

Expose the default mappings #310

Closed DRKolev-code closed 4 months ago

DRKolev-code commented 4 months ago

I would like to separate the keymaps from the options (using lazy.nvim). Is it possible to expose all functions in the default keymaps the same way close and reset are?

deathbeam commented 4 months ago

The keymaps are for the copilot chat buffer so using lazy.nvim for them do not makes sense in first place tho, you cant lazy load on them and they are not global bindings either.

DRKolev-code commented 4 months ago

I understand. I was thinking of being able to execute those commands outside of the CopilotCat buffer. For example show_diff (accept_diff, yank_diff, ...) still acts on the CopilotChat buffer but I don't have to switch to that window to run the command. The same way that reset works now.