summaryrefslogtreecommitdiffstats
path: root/vim/ftplugin/rust.vim
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2017-10-24 02:40:06 -0400
committerJesse Luehrs <doy@tozt.net>2017-10-24 03:31:57 -0400
commitba2de93f8527cd65a27bd1846c938c671eddf228 (patch)
tree607c45ed10a81eece299c16f89a07d0ea1b3eadb /vim/ftplugin/rust.vim
parent2cdd9d6858367976bfccc78a40ef2efdd82b8139 (diff)
downloadconf-ba2de93f8527cd65a27bd1846c938c671eddf228.tar.gz
conf-ba2de93f8527cd65a27bd1846c938c671eddf228.zip
clean up some ftplugins
Diffstat (limited to 'vim/ftplugin/rust.vim')
-rw-r--r--vim/ftplugin/rust.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/ftplugin/rust.vim b/vim/ftplugin/rust.vim
index b899d50..d090a5c 100644
--- a/vim/ftplugin/rust.vim
+++ b/vim/ftplugin/rust.vim
@@ -1,8 +1,8 @@
+let b:ale_rust_cargo_use_check = 1
+
if filereadable("Cargo.toml")
- compiler cargo
+ compiler cargo
setlocal makeprg=cargo\ build
else
setlocal makeprg=rustc\ %
endif
-
-let b:ale_rust_cargo_use_check = 1