blob: 413860cc946f6b54b660b27d646990023e9a294d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
let b:ale_linters = { 'rust': ['rls'] }
let b:ale_rust_rls_toolchain = 'stable'
let b:rustfmt_autosave = 1
if filereadable("Cargo.toml")
compiler cargo
setlocal makeprg=cargo\ build
else
setlocal makeprg=rustc\ %
endif
|