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