Added complete stuff

This commit is contained in:
Thomas Forgione 2019-01-07 11:45:34 +01:00
parent c360d24ea0
commit bd0fc8d864
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 3 additions and 2 deletions

View File

@ -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({