From d189801d3db7032c4f08e0faf24383d1befc88ed Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 7 Aug 2020 12:50:30 +0200 Subject: [PATCH] vim: rust: Only format on save when config present --- home/.config/nvim/init.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim index bbb760a..e4ee417 100644 --- a/home/.config/nvim/init.vim +++ b/home/.config/nvim/init.vim @@ -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 rt :RustTest