vim: rust: Only format on save when config present
This commit is contained in:
parent
c6e10fe02f
commit
d189801d3d
|
@ -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>
|
||||
|
||||
|
|
Reference in a new issue