Add rust plugin and autoformat

This commit is contained in:
Adam Gausmann 2019-05-05 17:55:16 -05:00
parent 6a153f8544
commit edadfcc62e
3 changed files with 6 additions and 0 deletions

3
.gitmodules vendored
View file

@ -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

@ -0,0 +1 @@
Subproject commit 9984b9753606fe2c8d7f3d4f9d67c1777a967cd6

View file

@ -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