setup copilot inline suggestions + chat
This commit is contained in:
parent
7aca777bf9
commit
b13e372fd6
7 changed files with 116 additions and 2 deletions
44
config/plugins/cmp/copilot.nix
Normal file
44
config/plugins/cmp/copilot.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue