From b33c5b6f266768fa729c3d84d249e291dcc05c91 Mon Sep 17 00:00:00 2001 From: Fabio Montefuscolo Date: Tue, 5 Mar 2024 17:41:49 +0100 Subject: [PATCH] feat: shortcut to accept copilot suggest --- mappings.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mappings.lua b/mappings.lua index 0623782..9d74d83 100644 --- a/mappings.lua +++ b/mappings.lua @@ -11,4 +11,16 @@ M.general = { }, } +M.copilot = { + i = { + [""] = { + function() + vim.fn.feedkeys(vim.fn['copilot#Accept'](), '') + end, + "Copilot Accept", + {replace_keycodes = true, nowait=true, silent=true, expr=true, noremap=true} + } + } +} + return M