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
@@ -11,6 +11,7 @@ pub enum PluginFramework {
|
||||
Plug,
|
||||
Vundle,
|
||||
NeoBundle,
|
||||
Dein,
|
||||
}
|
||||
|
||||
impl PluginFramework {
|
||||
@@ -23,6 +24,8 @@ impl PluginFramework {
|
||||
Some(PluginFramework::Vundle)
|
||||
} else if content.contains("plug#begin") {
|
||||
Some(PluginFramework::Plug)
|
||||
} else if content.contains("dein#begin") {
|
||||
Some(PluginFramework::Dein)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
@@ -33,6 +36,7 @@ impl PluginFramework {
|
||||
PluginFramework::NeoBundle => "NeoBundleUpdate",
|
||||
PluginFramework::Vundle => "PluginUpdate",
|
||||
PluginFramework::Plug => "PlugUpgrade | PlugUpdate",
|
||||
PluginFramework::Dein => "call dein#install() | call dein#update()",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user