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:
33
home/nixvim/plugins/ai/codeium.nix
Normal file
33
home/nixvim/plugins/ai/codeium.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
plugins = {
|
||||
codeium-nvim = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
enable_chat = true;
|
||||
|
||||
tools = {
|
||||
curl = lib.getExe pkgs.curl;
|
||||
gzip = lib.getExe pkgs.gzip;
|
||||
uname = lib.getExe' pkgs.coreutils "uname";
|
||||
uuidgen = lib.getExe' pkgs.util-linux "uuidgen";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>ac";
|
||||
action = "<cmd>Codeium Chat<CR>";
|
||||
options = {
|
||||
desc = "Codeium Chat";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
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