feat: shortcut to accept copilot suggest
This commit is contained in:
parent
0bc31e442b
commit
b33c5b6f26
1 changed files with 12 additions and 0 deletions
12
mappings.lua
12
mappings.lua
|
@ -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
|
return M
|
||||||
|
|
Loading…
Reference in a new issue