[ADD][VIM] Auto-format Rust files on save

This commit is contained in:
Bruno BELANYI 2019-12-22 20:56:52 +01:00
parent 94ed7a9e9e
commit 5e6a17064b

View file

@ -16,3 +16,7 @@ let b:undo_ftplugin='|unlet! b:ale_rust_cargo_use_clippy'
" Use rustfmt as ALE fixer for rust " Use rustfmt as ALE fixer for rust
let b:ale_fixers=[ 'rustfmt' ] let b:ale_fixers=[ 'rustfmt' ]
let b:undo_ftplugin.='|unlet! b:ale_fixers' 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'