diff --git a/vim/.vim/after/ftplugin/rust.vim b/vim/.vim/after/ftplugin/rust.vim index f135875..fb3bf13 100644 --- a/vim/.vim/after/ftplugin/rust.vim +++ b/vim/.vim/after/ftplugin/rust.vim @@ -16,3 +16,7 @@ let b:undo_ftplugin='|unlet! b:ale_rust_cargo_use_clippy' " Use rustfmt as ALE fixer for rust let b:ale_fixers=[ 'rustfmt' ] let b:undo_ftplugin.='|unlet! b:ale_fixers' + +" Automatically format files when saving them +let b:ale_fix_on_save=1 +let b:undo_ftplugin='|unlet! b:ale_lint_on_save'