mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-04 18:14:40 +02:00
nvim-compe key map added (#484)
This commit is contained in:
parent
6211202ce6
commit
214b9a4147
1 changed files with 9 additions and 0 deletions
|
@ -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 })")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue