feat:add_nixvim

This commit is contained in:
dichgrem
2025-09-21 15:54:31 +08:00
parent c36f91562d
commit 8016a1173d
64 changed files with 3608 additions and 30 deletions

View 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";
};
}
];
}

View 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";
}
];
}