return { { "zbirenbaum/copilot-cmp", opts = function() require("copilot.command").disable() local cptoggle = Snacks.toggle.new({ name = "Copilot", -- map = vim.keymap.set, which_key = true, get = function() return not require("copilot.client").is_disabled() end, notify = true, set = function(state) if state then require("copilot.command").enable() else require("copilot.command").disable() end end, }) Snacks.toggle.map(cptoggle, "at", { desc = "Toggle Copilot" }) -- LazyVim.toggle.map("at", copilot_toggle) end, }, { "CopilotC-Nvim/CopilotChat.nvim", opts = { auto_insert_mode = false, } }, }