[ADD][VIM] Auto-format Rust files on save
This commit is contained in:
parent
94ed7a9e9e
commit
5e6a17064b
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue