.dotfiles/home/.config/nvim/lua/plugs/copilot.lua
Martin Larsson 9b9424ac05 Change keybindings for copilot to better match cmd workflow (completion
on tab and acceping auto complete on right arrow)
2024-10-30 17:45:36 +01:00

18 lines
466 B
Lua

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
}