return { { "github/copilot.vim", config = function() vim.keymap.set("n", "ce", ":Copilot enable", { desc = "Enable Copilot Completions" }) vim.keymap.set("n", "cd", ":Copilot disable", { desc = "Disable Copilot Completions" }) vim.keymap.set("i", "", "copilot#Accept()", { expr = true, silent = true, replace_keycodes = false, }) vim.g.copilot_no_tab_map = true end, }, { "CopilotC-Nvim/CopilotChat.nvim", tag = "v3.4.0", dependencies = { { "nvim-lua/plenary.nvim" }, { "github/copilot.vim" }, }, build = "make tiktoken", config = function() vim.keymap.set("n", "cc", ":CopilotChatToggle", { desc = "Toggle Copilot Chat" }) vim.keymap.set("n", "cx", ":CopilotChatReset", { desc = "Reset Copilot Chat" }) require("CopilotChat").setup({ question_header = "", answer_header = "", separator = "", error_header = "> [!ERROR] Error", window = { layout = "horizontal", height = 0.3, width = 0.25, }, auto_insert_mode = false, chat_autocomplete = false, highlight_headers = false, show_help = false, }) end, }, }