Moved from vim-lsp to ALE
This commit is contained in:
parent
d9204b8266
commit
1a6f6cf02f
1 changed files with 4 additions and 28 deletions
32
vim/vimrc
32
vim/vimrc
|
@ -24,11 +24,13 @@ if has('nvim')
|
|||
set inccommand=split
|
||||
endif
|
||||
|
||||
let g:ale_set_baloons = 1
|
||||
let g:ale_completion_enabled = 1
|
||||
|
||||
call plug#begin('~/.config/nvim/plugged')
|
||||
|
||||
"LSP Stuff
|
||||
Plug 'prabirshrestha/async.vim'
|
||||
Plug 'prabirshrestha/vim-lsp'
|
||||
Plug 'w0rp/ale'
|
||||
Plug 'ryanolsonx/vim-lsp-python'
|
||||
Plug 'ryanolsonx/vim-lsp-typescript'
|
||||
Plug 'prabirshrestha/asyncomplete.vim'
|
||||
|
@ -54,29 +56,3 @@ let g:airline#extensions#tabline#enabled = 1
|
|||
let g:airline_powerline_fonts = 1
|
||||
let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
|
||||
|
||||
"LSP stuff
|
||||
"Ruby
|
||||
if executable('solargraph')
|
||||
" gem install solargraph
|
||||
au User lsp_setup call lsp#register_server({
|
||||
\ 'name': 'solargraph',
|
||||
\ 'cmd': {server_info->[&shell, &shellcmdflag, 'solargraph stdio']},
|
||||
\ 'initialization_options': {"diagnostics": "true"},
|
||||
\ 'whitelist': ['ruby'],
|
||||
\ })
|
||||
else
|
||||
echohl ErrorMsg
|
||||
echom 'Sorry, `solargraph` is not installed. Run `gem install solargraph` once ruby is set up to install.'
|
||||
echohl NONE
|
||||
endif
|
||||
|
||||
"Rust
|
||||
if executable('rls')
|
||||
au User lsp_setup call lsp#register_server({
|
||||
\ 'name': 'rls',
|
||||
\ 'cmd': {server_info->['rustup', 'run', 'stable', 'rls']},
|
||||
\ 'whitelist': ['rust'],
|
||||
\ })
|
||||
endif
|
||||
let g:asynccomplete_smart_completion = 1
|
||||
let g:asynccomplete_auto_popup = 1
|
||||
|
|
Loading…
Add table
Reference in a new issue