Skip to content

copilot started to attach automatically since last update #405

Description

@kekscode

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions