setup copilot inline suggestions + chat

This commit is contained in:
♥ Minnie ♥ 2025-06-11 15:32:18 +08:00
parent 7aca777bf9
commit b13e372fd6
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
7 changed files with 116 additions and 2 deletions

View file

@ -0,0 +1,44 @@
{...}: {
plugins.copilot-vim = {
enable = true;
settings = {
# Disable Copilot by default.
enabled = 0;
# Use the following workspace folders to improve suggestions.
workspace_folders = [
"/home/sajenim/.repositories/personal"
];
};
};
keymaps = [
{
mode = ["n" "v"];
key = "<leader>c";
action = "<Nop>";
options = {
desc = "+copilot";
};
}
{
mode = ["n"];
key = "<leader>ce";
action = "<cmd>Copilot enable<cr>";
options = {
silent = true;
desc = "Enable inline suggestions";
};
}
{
mode = ["n"];
key = "<leader>cd";
action = "<cmd>Copilot disable<cr>";
options = {
silent = true;
desc = "Disable inline suggestions";
};
}
];
}