nixvim/config/plugins/editor/copilot-chat.nix
2024-06-02 11:10:04 +02:00

38 lines
896 B
Nix

_: {
plugins.copilot-chat = {
enable = true;
};
keymaps = [
{
key = "<leader>ct";
action = "<CMD>CopilotChatToggle<CR>";
options.desc = "Toggle Copilot Chat Window";
}
{
key = "<leader>cs";
action = "<CMD>CopilotChatStop<CR>";
options.desc = "Stop current Copilot output";
}
{
key = "<leader>cr";
action = "<CMD>CopilotChatReview<CR>";
options.desc = "Review the selected code";
}
{
key = "<leader>ce";
action = "<CMD>CopilotChatExplain<CR>";
options.desc = "Give an explanation for the selected code";
}
{
key = "<leader>cd";
action = "<CMD>CopilotChatDocs<CR>";
options.desc = "Add documentation for the selection";
}
{
key = "<leader>cp";
action = "<CMD>CopilotChatTests<CR>";
options.desc = "Add tests for my code";
}
];
}