Plugins - Rust support

This commit is contained in:
Emmanuel BENOîT 2023-06-24 11:37:13 +02:00
parent 06757edcd6
commit fa892bf97f
No known key found for this signature in database
GPG key ID: 2356DC6956CF54EF
4 changed files with 7 additions and 2 deletions

View file

@ -1 +0,0 @@
let g:autofmt_autosave = 1

View file

@ -1 +0,0 @@
NeoBundle 'rust-lang/rust.vim'

2
plugins/rust.vim.cfg.vim Normal file
View file

@ -0,0 +1,2 @@
" Format Rust code automatically
let g:rustfmt_autosave = 1

View file

@ -0,0 +1,5 @@
call dein#add('rust-lang/rust.vim', #{
\ lazy: 1,
\ on_ft: ['rust'],
\ on_cmd: ['Cargo', 'RustFmt', 'RustRun', 'RustExpand', 'RustTest']
\ })