Update vim to RLS
This commit is contained in:
parent
1241b4c371
commit
c360d24ea0
15
init.vim
15
init.vim
|
@ -26,7 +26,12 @@ Plug 'vim-airline/vim-airline-themes'
|
|||
Plug 'scrooloose/nerdtree'
|
||||
Plug 'w0rp/ale'
|
||||
Plug 'digitaltoad/vim-pug'
|
||||
Plug 'racer-rust/vim-racer'
|
||||
Plug 'prabirshrestha/async.vim'
|
||||
Plug 'prabirshrestha/vim-lsp'
|
||||
Plug 'prabirshrestha/asyncomplete.vim'
|
||||
Plug 'prabirshrestha/asyncomplete-lsp.vim'
|
||||
|
||||
|
||||
call plug#end()
|
||||
|
||||
" Line numbers and syntaxic coloration
|
||||
|
@ -143,5 +148,13 @@ autocmd CursorMovedI * if pumvisible() == 0|pclose|endif
|
|||
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
|
||||
" Complete on tab
|
||||
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
|
||||
|
||||
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