Change keybindings for copilot to better match cmd workflow (completion
on tab and acceping auto complete on right arrow)
This commit is contained in:
parent
7c54faf521
commit
9b9424ac05
1 changed files with 15 additions and 0 deletions
|
|
@ -1,3 +1,18 @@
|
|||
return {
|
||||
"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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue