mirror of
https://github.com/Dichgrem/DCGOS.git
synced 2025-12-17 03:31:59 -05:00
feat:add_nixvim
This commit is contained in:
32
home/nixvim/plugins/ai/copilot.nix
Normal file
32
home/nixvim/plugins/ai/copilot.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
plugins = {
|
||||
copilot-chat.enable = true;
|
||||
copilot-lua = {
|
||||
enable = true;
|
||||
suggestion = {
|
||||
enabled = false;
|
||||
autoTrigger = true;
|
||||
keymap.accept = "<C-CR>";
|
||||
};
|
||||
panel.enabled = false;
|
||||
};
|
||||
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>a";
|
||||
mode = "n";
|
||||
icon = "";
|
||||
group = "+ai";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
action = "<cmd>CopilotChatToggle<CR>";
|
||||
key = "<leader>ac";
|
||||
options.desc = "Toggle Coilot chat";
|
||||
mode = "n";
|
||||
}
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user