Added complete stuff
This commit is contained in:
parent
c360d24ea0
commit
bd0fc8d864
5
init.vim
5
init.vim
|
@ -146,8 +146,9 @@ let g:deoplete#enable_at_startup = 1
|
||||||
" Autoclose preview
|
" Autoclose preview
|
||||||
autocmd CursorMovedI * if pumvisible() == 0|pclose|endif
|
autocmd CursorMovedI * if pumvisible() == 0|pclose|endif
|
||||||
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
|
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
|
||||||
" Complete on tab
|
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||||
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
|
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
||||||
|
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<cr>"
|
||||||
|
|
||||||
if executable('rls')
|
if executable('rls')
|
||||||
au User lsp_setup call lsp#register_server({
|
au User lsp_setup call lsp#register_server({
|
||||||
|
|
Loading…
Reference in New Issue