add copilot chat
This commit is contained in:
parent
cd1bc6acc3
commit
d588254fce
3 changed files with 49 additions and 10 deletions
38
config/plugins/editor/copilot-chat.nix
Normal file
38
config/plugins/editor/copilot-chat.nix
Normal 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";
|
||||
}
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue