add rust analyzer stuff, also ts and ruby

This commit is contained in:
Aaron Bieber 2021-02-09 07:45:39 -07:00
parent 358f0826a4
commit 953176439f
1 changed files with 13 additions and 0 deletions

13
.vimrc
View File

@ -7,6 +7,12 @@ Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'
Plug 'w0rp/ale'
Plug 'leafgarland/typescript-vim'
Plug 'vim-ruby/vim-ruby'
Plug 'prabirshrestha/async.vim'
Plug 'prabirshrestha/vim-lsp'
call plug#end()
nmap <Leader>bi :PlugInstall<CR>
@ -51,6 +57,13 @@ set nolist
set ruler
set mouse-=a
au User lsp_setup call lsp#register_server({
\ 'name': 'rust-analyzer',
\ 'cmd': ["rust-analyzer"],
\ 'allowlist': ['rust'],
\ })
let g:ale_linters = {
\ 'javascript': ['eslint'],
\ 'ruby': ['rubocop26'],