local map = function(type, key, value, opts) local options = { noremap = true } if opts then options = vim.tbl_extend("force", options, opts) end vim.api.nvim_set_keymap(type, key, value, options) end map("i", "", [[copilot#Accept("")]], { noremap = true, silent = true, expr = true }) vim.g.copilot_no_tab_map = true vim.g.copilot_assume_mapped = true vim.g.copilot_tab_fallback = "" vim.g.copilot_no_tab_map = true