From: Siraaj Khandkar Date: Thu, 20 Apr 2023 15:16:47 +0000 (-0400) Subject: Run rustfmt on .rs file write X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=dfa253a28ee980399ec96df774540049e4b5e1ac;p=khome.git Run rustfmt on .rs file write --- diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim index 7399d15..c230a89 100644 --- a/home/.config/nvim/init.vim +++ b/home/.config/nvim/init.vim @@ -38,6 +38,9 @@ source ~/.config/nvim/setup-coc.vim " NERDTree let NERDTreeShowLineNumbers=1 +" rust.vim +let g:rustfmt_autosave = 1 + "============================================================================== " Defaults "==============================================================================