plugins/helm: switch to mkVimPlugin

This commit is contained in:
Gaetan Lepage 2024-11-07 10:50:39 +01:00 committed by nix-infra-bot
parent 77b495801c
commit b0ebcaa177

View file

@ -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 ]; };
} }