[UPDATE][VIM] Use rust-analyzer as linter

This commit is contained in:
Bruno BELANYI 2020-08-31 20:09:24 +02:00
parent 87c9ab2bf9
commit b9b9701a2c

View file

@ -13,6 +13,11 @@ let b:undo_ftplugin='|unlet! b:ale_rust_cargo_check_examples'
let b:ale_rust_cargo_use_clippy=executable('cargo-clippy') let b:ale_rust_cargo_use_clippy=executable('cargo-clippy')
let b:undo_ftplugin='|unlet! b:ale_rust_cargo_use_clippy' let b:undo_ftplugin='|unlet! b:ale_rust_cargo_use_clippy'
" Use rust-analyzer instead of RLS as a linter
let b:ale_linters=[ 'cargo', 'analyzer' ]
let b:undo_ftplugin='|unlet! b:ale_linters'
" Use rustfmt as ALE fixer for rust " Use rustfmt as ALE fixer for rust
let b:ale_fixers=[ 'rustfmt' ] let b:ale_fixers=[ 'rustfmt' ]
let b:undo_ftplugin.='|unlet! b:ale_fixers' let b:undo_ftplugin.='|unlet! b:ale_fixers'