summaryrefslogtreecommitdiffstats
path: root/vim
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-12-22 03:14:55 -0500
committerJesse Luehrs <doy@tozt.net>2018-12-22 03:14:55 -0500
commitb88214e1fbe91b7cb6339ed2ae387a52881eafc0 (patch)
tree22faabf7dcca488d48aa84c85be8aa0aa37bb89d /vim
parent920acbf44da14aea81830c391bcacc29e7995482 (diff)
downloadconf-b88214e1fbe91b7cb6339ed2ae387a52881eafc0.tar.gz
conf-b88214e1fbe91b7cb6339ed2ae387a52881eafc0.zip
rustfmt on save for rust files
Diffstat (limited to 'vim')
-rw-r--r--vim/ftplugin/rust.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/vim/ftplugin/rust.vim b/vim/ftplugin/rust.vim
index d090a5c..4624861 100644
--- a/vim/ftplugin/rust.vim
+++ b/vim/ftplugin/rust.vim
@@ -1,4 +1,5 @@
let b:ale_rust_cargo_use_check = 1
+let b:rustfmt_autosave = 1
if filereadable("Cargo.toml")
compiler cargo