From 0c64477fde776a16cb57fdd5525df5008026c771 Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Sun, 17 Dec 2023 13:55:43 -0800 Subject: [PATCH] remap tab for copilot --- lua/plugins/copilot.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/plugins/copilot.lua b/lua/plugins/copilot.lua index 3829791..5f3072e 100644 --- a/lua/plugins/copilot.lua +++ b/lua/plugins/copilot.lua @@ -1,4 +1,9 @@ return { "github/copilot.vim", lazy = false, + config = function () + vim.api.nvim_set_keymap('i', '', 'copilot#Accept("")', { silent = true, script = true, expr = true }) + vim.g.copilot_no_tab_map = true; + vim.g.copilot_assume_mapped = true; + end }