I have this configuration to enforce only manually attaching copilot:
{
"zbirenbaum/copilot.lua", -- github copilot
enabled = true,
lazy = false,
cmd = "Copilot",
event = "InsertEnter",
config = function()
-- github copilot
vim.keymap.set(
"n",
"<leader>ca",
"<Cmd>Copilot! attach<CR>",
{ desc = "copilot attach (forced)", silent = true }
)
vim.keymap.set("n", "<leader>cd", "<Cmd>Copilot detach<CR>", { desc = "copilot detach", silent = true })
vim.keymap.set("n", "<leader>cs", "<Cmd>Copilot status<CR>", { desc = "copilot status", silent = true })
require("copilot").setup({
panel = { enabled = false },
suggestion = {
enabled = false, -- we use blink-cmp + plugin for copilot
auto_trigger = true, -- start as soon as insert mode is active
},
filetypes = {
["*"] = false, -- disable for all filetypes (`:Copilot! attach` will work, though)
},
})
end,
},
this worked before. no since 99654fe it seems to auto-attach again. is this a bug or a feature? or do i overlook something? if it is a feature, any advise on how to change the configuration now to get the privious behaviour back?
I have this configuration to enforce only manually attaching copilot:
{ "zbirenbaum/copilot.lua", -- github copilot enabled = true, lazy = false, cmd = "Copilot", event = "InsertEnter", config = function() -- github copilot vim.keymap.set( "n", "<leader>ca", "<Cmd>Copilot! attach<CR>", { desc = "copilot attach (forced)", silent = true } ) vim.keymap.set("n", "<leader>cd", "<Cmd>Copilot detach<CR>", { desc = "copilot detach", silent = true }) vim.keymap.set("n", "<leader>cs", "<Cmd>Copilot status<CR>", { desc = "copilot status", silent = true }) require("copilot").setup({ panel = { enabled = false }, suggestion = { enabled = false, -- we use blink-cmp + plugin for copilot auto_trigger = true, -- start as soon as insert mode is active }, filetypes = { ["*"] = false, -- disable for all filetypes (`:Copilot! attach` will work, though) }, }) end, },this worked before. no since
99654feit seems to auto-attach again. is this a bug or a feature? or do i overlook something? if it is a feature, any advise on how to change the configuration now to get the privious behaviour back?