remap tab for copilot

This commit is contained in:
Salar Rahmanian 2023-12-17 13:55:43 -08:00
parent 023d479cad
commit 0c64477fde

View file

@ -1,4 +1,9 @@
return { return {
"github/copilot.vim", "github/copilot.vim",
lazy = false, lazy = false,
config = function ()
vim.api.nvim_set_keymap('i', '<C-Tab>', 'copilot#Accept("<End>")', { silent = true, script = true, expr = true })
vim.g.copilot_no_tab_map = true;
vim.g.copilot_assume_mapped = true;
end
} }