Added support for Voom for Vim packages (#232)

This commit is contained in:
Hugo Haas
2019-10-05 10:19:07 -07:00
committed by Roey Darwish Dror
parent f6ca350ebc
commit b9125f88a9
3 changed files with 15 additions and 0 deletions

View File

@@ -94,6 +94,7 @@ Just run `topgrade`. It will run the following steps:
* [Vundle](https://github.com/VundleVim/Vundle.vim) * [Vundle](https://github.com/VundleVim/Vundle.vim)
* [Plug](https://github.com/junegunn/vim-plug) * [Plug](https://github.com/junegunn/vim-plug)
* [Dein](https://github.com/Shougo/dein.vim) * [Dein](https://github.com/Shougo/dein.vim)
* [Voom](https://github.com/airblade/voom)
* Node * Node
* Run `yarn global update` if yarn is installed. * Run `yarn global update` if yarn is installed.
* Run `npm update -g` if NPM is installed and `npm root -g` is a path inside your home directory. * Run `npm update -g` if NPM is installed and `npm root -g` is a path inside your home directory.

View File

@@ -386,6 +386,12 @@ fn run() -> Result<(), Error> {
|| vim::upgrade_neovim(&base_dirs, run_type), || vim::upgrade_neovim(&base_dirs, run_type),
config.no_retry(), config.no_retry(),
)?; )?;
execute(
&mut report,
"voom",
|| vim::run_voom(&base_dirs, run_type),
config.no_retry(),
)?;
} }
if config.should_run(Step::Node) { if config.should_run(Step::Node) {

View File

@@ -117,3 +117,11 @@ pub fn upgrade_neovim(base_dirs: &BaseDirs, run_type: RunType) -> Result<(), Err
print_separator(&format!("Neovim ({:?})", plugin_framework)); print_separator(&format!("Neovim ({:?})", plugin_framework));
upgrade(&nvim, &nvimrc, plugin_framework, run_type) upgrade(&nvim, &nvimrc, plugin_framework, run_type)
} }
pub fn run_voom(_base_dirs: &BaseDirs, run_type: RunType) -> Result<(), Error> {
let voom = require("voom")?;
print_separator("voom");
run_type.execute(voom).arg("update").check_run()
}