From fa892bf97fc831d81468a365eab4bf2e767bd2f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20BENO=C3=8ET?= Date: Sat, 24 Jun 2023 11:37:13 +0200 Subject: [PATCH] Plugins - Rust support --- bundles-init/rust.vim.conf.vim | 1 - bundles-init/rust.vim.load.vim | 1 - plugins/rust.vim.cfg.vim | 2 ++ plugins/rust.vim.load.vim | 5 +++++ 4 files changed, 7 insertions(+), 2 deletions(-) delete mode 100644 bundles-init/rust.vim.conf.vim delete mode 100644 bundles-init/rust.vim.load.vim create mode 100644 plugins/rust.vim.cfg.vim create mode 100644 plugins/rust.vim.load.vim 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'] + \ })