local enabled = true ---@type LazySpec return { { "zbirenbaum/copilot.lua", enabled = enabled, cmd = "Copilot", build = ":Copilot auth", opts = { suggestion = { enabled = false }, panel = { enabled = false, auto_refresh = true, keymap = { refresh = "" }, layout = { position = "right", ratio = 0.3, }, }, filetypes = { yaml = true, TelescopePrompt = false, org = false, ledger = false, ["."] = false, }, }, }, { "CopilotC-Nvim/CopilotChat.nvim", dependencies = { "copilot.lua" }, enabled = enabled, version = false, cmd = { "CopilotChat" }, build = "make tiktoken", keys = { { "C", ":CopilotChat ", mode = { "n", "v" } }, }, ---@module "CopilotChat" ---@type CopilotChat.config opts = { auto_insert_mode = true, mappings = { ---@diagnostic disable-next-line: missing-fields reset = { insert = "", normal = "", }, ---@diagnostic disable-next-line: missing-fields submit_prompt = { insert = "", }, ---@diagnostic disable-next-line: missing-fields show_help = { normal = "?" }, }, }, }, { "nvim-cmp", enabled = enabled, dependencies = { "copilot.lua", { "zbirenbaum/copilot-cmp", config = true }, }, ---@module "cmp" ---@param opts cmp.ConfigSchema opts = function(_, opts) table.insert(opts.sources, 1, { name = "copilot", group_index = 0, max_item_count = 3, }) end, }, }