diff options
| author | jdhao <jdhao@hotmail.com> | 2021-04-11 23:49:17 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-04-11 23:49:17 +0800 |
| commit | 1a16156bd652fd3a884dba568e574473c768368d (patch) | |
| tree | 6b3b9b5470f7b9db3597713d59bac221ebbfa2e1 /core | |
| parent | aeea5f18f5e6d237ec608aaed60c850ab255ef5c (diff) | |
Make nvim-compe setting all lua
For lua plugins, configuring them in lua instead of vim script is sensible.
Diffstat (limited to 'core')
| -rw-r--r-- | core/plugins.vim | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/plugins.vim b/core/plugins.vim index 75dafe5..19d4c07 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -447,14 +447,14 @@ require'compe'.setup { } vim.o.completeopt = "menuone,noselect" -EOF -" nvim-comple mappings -inoremap <silent><expr> <C-Space> compe#complete() -inoremap <silent><expr> <CR> compe#confirm('<CR>') -inoremap <silent><expr> <C-e> compe#close('<C-e>') -inoremap <silent><expr> <C-f> compe#scroll({ 'delta': +4 }) -inoremap <silent><expr> <C-d> compe#scroll({ 'delta': -4 }) +-- nvim-comple mappings +vim.api.nvim_set_keymap('i', '<C-Space>', 'compe#complete()', {expr = true}) +vim.api.nvim_set_keymap('i', '<CR>', "compe#confirm('<CR>')", {expr = true}) +vim.api.nvim_set_keymap('i', '<C-e>', "compe#close('<C-e>')", {expr = true}) +vim.api.nvim_set_keymap('i', '<C-f>', "compe#scroll({'delta': +4})", {expr = true}) +vim.api.nvim_set_keymap('i', '<C-d>', "compe#scroll({'delta': -4})", {expr = true}) +EOF """""""""""""""""""""""""UltiSnips settings""""""""""""""""""" " Trigger configuration. Do not use <tab> if you use YouCompleteMe |
