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 f754ae0e4e
commit 2ea90700b9
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5
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