setup copilot inline suggestions + chat
This commit is contained in:
parent
7aca777bf9
commit
b13e372fd6
7 changed files with 116 additions and 2 deletions
59
config/plugins/utils/copilot-chat.nix
Normal file
59
config/plugins/utils/copilot-chat.nix
Normal file
|
@ -0,0 +1,59 @@
|
|||
{ ... }: {
|
||||
plugins.copilot-chat = {
|
||||
enable = true;
|
||||
|
||||
# Copilot Chat settings.
|
||||
settings = {
|
||||
# Model to use for Copilot Chat.
|
||||
model = "gpt-4.1";
|
||||
# Window settings for Copilot Chat.
|
||||
window = {
|
||||
# Width of the chat window.
|
||||
width = 0.3;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Keymaps for Copilot Chat.
|
||||
keymaps = [
|
||||
{
|
||||
mode = ["n"];
|
||||
key = "<leader>ct";
|
||||
action = "<cmd>CopilotChatToggle<cr>";
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Toggle chat";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = ["n"];
|
||||
key = "<leader>cp";
|
||||
action = "<cmd>CopilotChatPrompts<cr>";
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Select prompt";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = ["n"];
|
||||
key = "<leader>cm";
|
||||
action = "<cmd>CopilotChatModels<cr>";
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Select model";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = ["n"];
|
||||
key = "<leader>ca";
|
||||
action = "<cmd>CopilotChatAgents<cr>";
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Select agent";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue