From edadfcc62e16d8e0ecd6609573a408d4419af748 Mon Sep 17 00:00:00 2001 From: Adam Gausmann Date: Sun, 5 May 2019 17:55:16 -0500 Subject: [PATCH] Add rust plugin and autoformat --- .gitmodules | 3 +++ raw/.vim/pack/git-plugins/start/rust.vim | 1 + templates/.vimrc | 2 ++ 3 files changed, 6 insertions(+) create mode 160000 raw/.vim/pack/git-plugins/start/rust.vim diff --git a/.gitmodules b/.gitmodules index df60e4a..a761e13 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,6 @@ [submodule "raw/.vim/pack/git-plugins/start/pest.vim"] path = raw/.vim/pack/git-plugins/start/pest.vim url = https://github.com/pest-parser/pest.vim +[submodule "raw/.vim/pack/git-plugins/start/rust.vim"] + path = raw/.vim/pack/git-plugins/start/rust.vim + url = https://github.com/rust-lang/rust.vim diff --git a/raw/.vim/pack/git-plugins/start/rust.vim b/raw/.vim/pack/git-plugins/start/rust.vim new file mode 160000 index 0000000..9984b97 --- /dev/null +++ b/raw/.vim/pack/git-plugins/start/rust.vim @@ -0,0 +1 @@ +Subproject commit 9984b9753606fe2c8d7f3d4f9d67c1777a967cd6 diff --git a/templates/.vimrc b/templates/.vimrc index 4bcada3..28de79b 100644 --- a/templates/.vimrc +++ b/templates/.vimrc @@ -19,6 +19,8 @@ set softtabstop=4 set shiftwidth=4 set expandtab +let g:rustfmt_autosave = 1 " format .rs on save + " custom file types filetype plugin indent on autocmd FileType yaml,yml setlocal tabstop=2 softtabstop=2 shiftwidth=2