Remap accepting copilot to C-CR

Requires special terminal config seen in https://stackoverflow.com/a/42461580
master
Drake 3 years ago
parent ca8f7771bd
commit 34ee505a76
No known key found for this signature in database
GPG Key ID: 9B83455BD94F12A3

@ -23,7 +23,7 @@ vim.call('plug#end')
set.termguicolors = true
set.mouse = 'a'
set.clipboard = 'unnamedplus'
set.pumheight =5
set.pumheight = 5
set.number = true
set.tabstop = 4
set.shiftwidth = 4

@ -11,4 +11,4 @@ map('n', '<C-[>', '<Plug>(cokeline-focus-prev)', {noremap=false})
map('n', '<C-]>', '<Plug>(cokeline-focus-next)', {noremap=false})
map('n', '<C-o>', '<CMD>Telescope find_files<CR>', {noremap=true})
map('n', '<C-i>', '<CMD>lua require("FTerm").toggle()<CR>', {noremap=true, silent=true})
map('i', '<C-j>', 'copilot#Accept("<CR>")', {noremap=true, silent=true, expr=true})
map('i', '<C-CR>', 'copilot#Accept("<CR>")', {noremap=true, silent=true, expr=true})

Loading…
Cancel
Save