Back to racer, RLS eats shit ton of memory
This commit is contained in:
parent
8f350340f9
commit
1efc4c885e
20
init.vim
20
init.vim
|
@ -26,12 +26,7 @@ Plug 'vim-airline/vim-airline-themes'
|
||||||
Plug 'scrooloose/nerdtree'
|
Plug 'scrooloose/nerdtree'
|
||||||
Plug 'w0rp/ale'
|
Plug 'w0rp/ale'
|
||||||
Plug 'digitaltoad/vim-pug'
|
Plug 'digitaltoad/vim-pug'
|
||||||
Plug 'prabirshrestha/async.vim'
|
Plug 'racer-rust/vim-racer'
|
||||||
Plug 'prabirshrestha/vim-lsp'
|
|
||||||
Plug 'prabirshrestha/asyncomplete.vim'
|
|
||||||
Plug 'prabirshrestha/asyncomplete-lsp.vim'
|
|
||||||
|
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" Line numbers and syntaxic coloration
|
" Line numbers and syntaxic coloration
|
||||||
|
@ -146,16 +141,7 @@ 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
|
||||||
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
" Complete on tab
|
||||||
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
|
||||||
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<cr>"
|
|
||||||
|
|
||||||
if executable('rls')
|
|
||||||
au User lsp_setup call lsp#register_server({
|
|
||||||
\ 'name': 'rls',
|
|
||||||
\ 'cmd': {server_info->['rustup', 'run', 'stable', 'rls']},
|
|
||||||
\ 'whitelist': ['rust'],
|
|
||||||
\ })
|
|
||||||
endif
|
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue