-- Copilot return { { "github/copilot.vim", cmd = "Copilot", event = "InsertEnter", config = function() -- Optional: enable copilot globally vim.g.copilot_no_tab_map = true vim.api.nvim_set_keymap("i", "", 'copilot#Accept("")', { silent = true, expr = true }) vim.g.copilot_assume_mapped = true vim.g.copilot_filetypes = { ["*"] = true, -- enable for all filetypes ["markdown"] = false, -- disable for markdown if desired } end, }, }