mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/helm: switch to mkVimPlugin
This commit is contained in:
parent
77b495801c
commit
b0ebcaa177
1 changed files with 5 additions and 20 deletions
|
@ -1,27 +1,12 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
helpers,
|
helpers,
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
helpers.vim-plugin.mkVimPlugin {
|
||||||
let
|
name = "helm";
|
||||||
cfg = config.plugins.helm;
|
originalName = "vim-helm";
|
||||||
in
|
package = "vim-helm";
|
||||||
{
|
|
||||||
meta.maintainers = [ maintainers.GaetanLepage ];
|
|
||||||
|
|
||||||
options.plugins.helm = {
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
enable = mkEnableOption "vim-helm";
|
|
||||||
|
|
||||||
package = lib.mkPackageOption pkgs "vim-helm" {
|
|
||||||
default = [
|
|
||||||
"vimPlugins"
|
|
||||||
"vim-helm"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable { extraPlugins = [ cfg.package ]; };
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue