add copilot chat
This commit is contained in:
parent
cd1bc6acc3
commit
d588254fce
3 changed files with 49 additions and 10 deletions
|
|
@ -24,6 +24,7 @@ _: {
|
|||
./plugins/editor/illuminate.nix
|
||||
./plugins/editor/indent-blankline.nix
|
||||
./plugins/editor/todo-comments.nix
|
||||
./plugins/editor/copilot-chat.nix
|
||||
|
||||
# UI plugins
|
||||
./plugins/ui/bufferline.nix
|
||||
|
|
|
|||
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";
|
||||
}
|
||||
];
|
||||
}
|
||||
20
flake.lock
generated
20
flake.lock
generated
|
|
@ -73,11 +73,11 @@
|
|||
"nixpkgs-lib": "nixpkgs-lib"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1715865404,
|
||||
"narHash": "sha256-/GJvTdTpuDjNn84j82cU6bXztE0MSkdnTWClUCRub78=",
|
||||
"lastModified": 1717285511,
|
||||
"narHash": "sha256-iKzJcpdXih14qYVcZ9QC9XuZYnPc6T8YImb6dX166kw=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "8dc45382d5206bd292f9c2768b8058a8fd8311d9",
|
||||
"rev": "2a55567fcf15b1b1c7ed712a2c6fadaec7412ea8",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -270,14 +270,14 @@
|
|||
},
|
||||
"nixpkgs-lib": {
|
||||
"locked": {
|
||||
"lastModified": 1714640452,
|
||||
"narHash": "sha256-QBx10+k6JWz6u7VsohfSw8g8hjdBZEf8CFzXH1/1Z94=",
|
||||
"lastModified": 1717284937,
|
||||
"narHash": "sha256-lIbdfCsf8LMFloheeE6N31+BMIeixqyQWbSr2vk79EQ=",
|
||||
"type": "tarball",
|
||||
"url": "https://github.com/NixOS/nixpkgs/archive/50eb7ecf4cd0a5756d7275c8ba36790e5bd53e33.tar.gz"
|
||||
"url": "https://github.com/NixOS/nixpkgs/archive/eb9ceca17df2ea50a250b6b27f7bf6ab0186f198.tar.gz"
|
||||
},
|
||||
"original": {
|
||||
"type": "tarball",
|
||||
"url": "https://github.com/NixOS/nixpkgs/archive/50eb7ecf4cd0a5756d7275c8ba36790e5bd53e33.tar.gz"
|
||||
"url": "https://github.com/NixOS/nixpkgs/archive/eb9ceca17df2ea50a250b6b27f7bf6ab0186f198.tar.gz"
|
||||
}
|
||||
},
|
||||
"nixpkgs-stable": {
|
||||
|
|
@ -311,11 +311,11 @@
|
|||
"treefmt-nix": "treefmt-nix"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1717097562,
|
||||
"narHash": "sha256-4thrq0yjTmGEXH/EjteE/UoYjKZzuxWfULZEIRpfP08=",
|
||||
"lastModified": 1717274692,
|
||||
"narHash": "sha256-CnMCPxY9GfBAONN3BoWmPc36QV5Sv9uZFKH9VkE5KJI=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixvim",
|
||||
"rev": "25338942a7ee8d641c8d56ba3726a1cb114580ea",
|
||||
"rev": "e58380adcddc450eb08c37760a3f282077386d19",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue