add copilot chat

This commit is contained in:
Roel de Cort 2024-06-02 11:10:04 +02:00
parent cd1bc6acc3
commit d588254fce
3 changed files with 49 additions and 10 deletions

View file

@ -0,0 +1,38 @@
_: {
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";
}
];
}