nvim-compe key map added (#484)

This commit is contained in:
PBird 2021-06-19 00:42:08 +03:00 committed by GitHub
parent 6211202ce6
commit 214b9a4147
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,3 +67,12 @@ vim.cmd('vnoremap P "0P')
-- Toggle the QuickFix window
vim.api.nvim_set_keymap('', '<C-q>', ':call QuickFixToggle()<CR>', {noremap = true, silent = true})
-- nvim-compe key map
vim.cmd('inoremap <silent><expr> <C-Space> compe#complete()')
vim.cmd("inoremap <silent><expr> <CR> compe#confirm('<CR>')")
vim.cmd("inoremap <silent><expr> <C-e> compe#close('<C-e>')")
vim.cmd("inoremap <silent><expr> <C-f> compe#scroll({ 'delta': +4 })")
vim.cmd("inoremap <silent><expr> <C-d> compe#scroll({ 'delta': -4 })")