blob: b642fadbd90a205a8a88da52b722823e2ab6f24c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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_fixers = { 'rust': ['rustfmt'] }
let b:ale_fix_on_save = 1
let b:ale_rust_rustfmt_options = "--edition 2018"
if filereadable("Cargo.toml")
compiler cargo
setlocal makeprg=cargo\ build
else
setlocal makeprg=rustc\ %
endif
|