Change keybindings for copilot to better match cmd workflow (completion

on tab and acceping auto complete on right arrow)
This commit is contained in:
Martin Larsson 2024-10-30 17:45:36 +01:00
parent 7c54faf521
commit 9b9424ac05

View file

@ -1,3 +1,18 @@
return { return {
"github/copilot.vim", "github/copilot.vim",
config = function()
vim.g.copilot_no_tab_map = true
require("utils").add_keymaps({
i = {
["<Right>"] = {
cmd = 'copilot#Accept("")',
opts = {
expr = true,
replace_keycodes = false,
silent = true,
}
}
}
})
end
} }