Adds 'Dein' vim plugin manager support (#148)
* Adds 'Dein' vim plugin manager support * Add missing comma
This commit is contained in:
committed by
Roey Darwish Dror
parent
f107bd38e2
commit
57d3893a2b
@@ -90,6 +90,7 @@ Just run `topgrade`. It will run the following steps:
|
|||||||
* [NeoBundle](https://github.com/Shougo/neobundle.vim)
|
* [NeoBundle](https://github.com/Shougo/neobundle.vim)
|
||||||
* [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)
|
||||||
* 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.
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ pub enum PluginFramework {
|
|||||||
Plug,
|
Plug,
|
||||||
Vundle,
|
Vundle,
|
||||||
NeoBundle,
|
NeoBundle,
|
||||||
|
Dein,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl PluginFramework {
|
impl PluginFramework {
|
||||||
@@ -23,6 +24,8 @@ impl PluginFramework {
|
|||||||
Some(PluginFramework::Vundle)
|
Some(PluginFramework::Vundle)
|
||||||
} else if content.contains("plug#begin") {
|
} else if content.contains("plug#begin") {
|
||||||
Some(PluginFramework::Plug)
|
Some(PluginFramework::Plug)
|
||||||
|
} else if content.contains("dein#begin") {
|
||||||
|
Some(PluginFramework::Dein)
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
@@ -33,6 +36,7 @@ impl PluginFramework {
|
|||||||
PluginFramework::NeoBundle => "NeoBundleUpdate",
|
PluginFramework::NeoBundle => "NeoBundleUpdate",
|
||||||
PluginFramework::Vundle => "PluginUpdate",
|
PluginFramework::Vundle => "PluginUpdate",
|
||||||
PluginFramework::Plug => "PlugUpgrade | PlugUpdate",
|
PluginFramework::Plug => "PlugUpgrade | PlugUpdate",
|
||||||
|
PluginFramework::Dein => "call dein#install() | call dein#update()",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user