Added rust plugin to vim

Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
Marko Korhonen 2020-01-18 22:24:35 +02:00
parent da69031e73
commit f89c81b50a
2 changed files with 4 additions and 0 deletions

View file

@ -46,6 +46,7 @@ Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'
" Syntax plugins
Plug 'rust-lang/rust.vim'
Plug 'stephpy/vim-yaml'
Plug 'vim-pandoc/vim-pandoc-syntax'
Plug 'kevinoid/vim-jsonc'

View file

@ -7,3 +7,6 @@ let g:vimtex_compiler_progname='nvr'
" YAML settings
au! BufNewFile,BufReadPost *.{yaml,yml} set filetype=yaml foldmethod=indent
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
" Run rustfmt on save
let g:rustfmt_autosave = 1