add ctrl+j to accept copilot

pull/630/head
frumsy 2 years ago
parent 65e81d3c0b
commit 6c3ee1bd39

@ -385,6 +385,9 @@ vim.api.nvim_set_keymap('v', 'X', '"_X', { noremap = true })
-- See `:help vim.keymap.set()`
vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
-- add accept copilot suggestion using: ctrl+enter
vim.g.copilot_no_tab_map = true
vim.api.nvim_set_keymap("i", '<C-j>', 'copilot#Accept("<CR>")', { silent = true, expr = true })
-- make ctrl+backspace work in vscode
-- lhs code is associated with whatever terminal (kitty in my case) sends to neovim

Loading…
Cancel
Save