mirror of
https://github.com/zoriya/flake.git
synced 2026-06-04 03:06:54 +00:00
Add & configure copilot agent mode
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user