Add & configure copilot agent mode

This commit is contained in:
2025-06-04 14:52:16 +02:00
parent d80377946c
commit 16fe91f802
2 changed files with 68 additions and 0 deletions
+6
View File
@@ -106,6 +106,12 @@ in
virt-column-nvim
indent-blankline-nvim
zen-mode-nvim
CopilotChat-nvim
# enable this just to signin (used by the chat plugin above)
# (copilot-vim.overrideAttrs {
# postPatch = "rm doc/copilot.txt";
# })
];
opt = [
telescope-nvim
+62
View File
@@ -0,0 +1,62 @@
return {
-- {
-- "avante.nvim",
-- keys = {
-- {
-- "<leader>l",
-- "<cmd>AvanteToggle<cr>",
-- desc = "Copilot",
-- mode = { "n", "v" },
-- }
-- },
-- opts = {
-- provider = "copilot",
-- dual_boost = {
-- enabled = false,
-- },
-- behaviour = {
-- auto_suggestions = false,
-- },
-- mappings = {
-- diff = false,
-- },
-- hints = {
-- enabled = false,
-- },
-- },
-- after = function(plug)
-- require("avante").setup(plug.opts)
-- end,
-- },
{
"CopilotChat.nvim",
keys = {
{
"<leader>l",
"<cmd>CopilotChatToggle<cr>",
desc = "Copilot",
mode = { "n", "v" },
}
},
opts = {
auto_insert_mode = true,
mappings = {
complete = {
insert = "<C-space>",
},
close = {
normal = "q",
insert = "",
},
}
},
after = function(plug)
local select = require("CopilotChat.select")
plug.opts.selection = function(source)
return select.visual(source) or select.buffer(source)
end
require("CopilotChat").setup(plug.opts)
end,
},
}