diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-12-23 05:14:12 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-12-23 05:14:12 -0500 |
commit | 7d158fb6cbef594243bba79e5fe3337652588040 (patch) | |
tree | a46149fb00e4cb2d0c9da9652b5a938c3f49bb30 /vim | |
parent | 56bac03fa729575054d3b98d308035e6e1e687c7 (diff) | |
download | conf-7d158fb6cbef594243bba79e5fe3337652588040.tar.gz conf-7d158fb6cbef594243bba79e5fe3337652588040.zip |
use ale's fixer for rustfmt
Diffstat (limited to 'vim')
-rw-r--r-- | vim/ftplugin/rust.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vim/ftplugin/rust.vim b/vim/ftplugin/rust.vim index 413860c..9ef53db 100644 --- a/vim/ftplugin/rust.vim +++ b/vim/ftplugin/rust.vim @@ -1,6 +1,7 @@ let b:ale_linters = { 'rust': ['rls'] } let b:ale_rust_rls_toolchain = 'stable' -let b:rustfmt_autosave = 1 +let b:ale_fixers = { 'rust': ['rustfmt'] } +let b:ale_fix_on_save = 1 if filereadable("Cargo.toml") compiler cargo |