feat: shortcut to accept copilot suggest

This commit is contained in:
Fabio Montefuscolo 2024-03-05 17:41:49 +01:00
parent 0bc31e442b
commit b33c5b6f26
Signed by: fabiomontefuscolo
GPG key ID: B98DA1C6A4DE48B5

View file

@ -11,4 +11,16 @@ M.general = {
},
}
M.copilot = {
i = {
["<C-a>"] = {
function()
vim.fn.feedkeys(vim.fn['copilot#Accept'](), '')
end,
"Copilot Accept",
{replace_keycodes = true, nowait=true, silent=true, expr=true, noremap=true}
}
}
}
return M