diff --git a/bundles-init/rust.vim.conf.vim b/bundles-init/rust.vim.conf.vim deleted file mode 100644 index 7ec2b5c..0000000 --- a/bundles-init/rust.vim.conf.vim +++ /dev/null @@ -1 +0,0 @@ -let g:autofmt_autosave = 1 diff --git a/bundles-init/rust.vim.load.vim b/bundles-init/rust.vim.load.vim deleted file mode 100644 index 89e34c0..0000000 --- a/bundles-init/rust.vim.load.vim +++ /dev/null @@ -1 +0,0 @@ -NeoBundle 'rust-lang/rust.vim' diff --git a/plugins/rust.vim.cfg.vim b/plugins/rust.vim.cfg.vim new file mode 100644 index 0000000..639877f --- /dev/null +++ b/plugins/rust.vim.cfg.vim @@ -0,0 +1,2 @@ +" Format Rust code automatically +let g:rustfmt_autosave = 1 diff --git a/plugins/rust.vim.load.vim b/plugins/rust.vim.load.vim new file mode 100644 index 0000000..062357d --- /dev/null +++ b/plugins/rust.vim.load.vim @@ -0,0 +1,5 @@ +call dein#add('rust-lang/rust.vim', #{ + \ lazy: 1, + \ on_ft: ['rust'], + \ on_cmd: ['Cargo', 'RustFmt', 'RustRun', 'RustExpand', 'RustTest'] + \ })