mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
move completion-related mapping to mappings.vim
This commit is contained in:
parent
cbb49028d4
commit
4e354ef185
@ -106,6 +106,10 @@ inoremap <expr> <cr> ((pumvisible())?("\<C-Y>"):("\<cr>"))
|
|||||||
" Use <esc> to close auto-completion menu
|
" Use <esc> to close auto-completion menu
|
||||||
inoremap <expr> <esc> ((pumvisible())?("\<C-e>"):("\<esc>"))
|
inoremap <expr> <esc> ((pumvisible())?("\<C-e>"):("\<esc>"))
|
||||||
|
|
||||||
|
" Tab-complete, see https://vi.stackexchange.com/q/19675/15292.
|
||||||
|
inoremap <expr> <tab> pumvisible() ? "\<c-n>" : "\<tab>"
|
||||||
|
inoremap <expr> <s-tab> pumvisible() ? "\<c-p>" : "\<s-tab>"
|
||||||
|
|
||||||
" Edit and reload init.vim quickly
|
" Edit and reload init.vim quickly
|
||||||
nnoremap <silent> <leader>ev :tabnew $MYVIMRC <bar> tcd %:h<cr>
|
nnoremap <silent> <leader>ev :tabnew $MYVIMRC <bar> tcd %:h<cr>
|
||||||
nnoremap <silent> <leader>sv :silent update $MYVIMRC <bar> source $MYVIMRC <bar>
|
nnoremap <silent> <leader>sv :silent update $MYVIMRC <bar> source $MYVIMRC <bar>
|
||||||
|
|||||||
@ -355,10 +355,6 @@ call deoplete#custom#option('auto_complete_delay', 100)
|
|||||||
" Enable deoplete auto-completion
|
" Enable deoplete auto-completion
|
||||||
call deoplete#custom#option('auto_complete', v:true)
|
call deoplete#custom#option('auto_complete', v:true)
|
||||||
|
|
||||||
" Tab-complete, see https://vi.stackexchange.com/q/19675/15292.
|
|
||||||
inoremap <expr> <tab> pumvisible() ? "\<c-n>" : "\<tab>"
|
|
||||||
inoremap <expr> <s-tab> pumvisible() ? "\<c-p>" : "\<s-tab>"
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""UltiSnips settings"""""""""""""""""""
|
"""""""""""""""""""""""""UltiSnips settings"""""""""""""""""""
|
||||||
" Trigger configuration. Do not use <tab> if you use YouCompleteMe
|
" Trigger configuration. Do not use <tab> if you use YouCompleteMe
|
||||||
let g:UltiSnipsExpandTrigger='<c-j>'
|
let g:UltiSnipsExpandTrigger='<c-j>'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user