nvim: copilot accept fix

This commit is contained in:
Daniel Lundin 2022-10-07 10:29:23 +02:00
parent 2112614c4a
commit e7dcd1d55b

View file

@ -1,5 +1,7 @@
vim.keymap.set("i", "<C-J>", [[copilot#Accept("\<CR>")]], { noremap = true, silent = true, expr = true, script = true })
vim.keymap.set("i", "<C-J>", [[copilot#Accept("<CR>")]], { noremap = true, silent = true, expr = true, script = true })
vim.g.copilot_no_tab_map = true
vim.g.copilot_assume_mapped = true
vim.g.copilot_tab_fallback = ""
vim.g.copilot_no_tab_map = true