vim: rust: Only format on save when config present

This commit is contained in:
Simon Bruder 2020-08-07 12:50:30 +02:00
parent c6e10fe02f
commit d189801d3d
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -127,7 +127,7 @@ autocmd FileType * call LC_maps()
" Rust
Plug 'rust-lang/rust.vim'
let g:rustfmt_autosave = 1
let g:rustfmt_autosave_if_config_present = 1
let g:rust_fold = 1
map <Leader>rt :RustTest<CR>