diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-06-19 00:21:24 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-06-19 00:21:24 -0400 |
commit | d563005e01c8491a6433b5c432597d28fb5030f0 (patch) | |
tree | 17cc7082cd7a7c66d2bbdff30396545753a60d59 | |
parent | dedf1dbe443cd996dff0055367910a13b5514032 (diff) | |
download | conf-d563005e01c8491a6433b5c432597d28fb5030f0.tar.gz conf-d563005e01c8491a6433b5c432597d28fb5030f0.zip |
use rust-analyzer
-rw-r--r-- | vim/ftplugin/rust.vim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vim/ftplugin/rust.vim b/vim/ftplugin/rust.vim index 292f008..007674b 100644 --- a/vim/ftplugin/rust.vim +++ b/vim/ftplugin/rust.vim @@ -1,6 +1,5 @@ -let b:ale_linters = { 'rust': ['rls'] } -let b:ale_rust_rls_toolchain = 'stable' -let b:ale_rust_rls_config = { 'rust': { 'clippy_preference': 'on' } } +let b:ale_linters = { 'rust': ['analyzer'] } +let b:ale_rust_analyzer_config = { 'checkOnSave': { 'command': 'clippy' } } let b:ale_fixers = { 'rust': ['rustfmt'] } let b:ale_fix_on_save = 1 let b:ale_rust_rustfmt_options = "--edition 2018" |