Skip to content

Commit

Permalink
plugins/helm: switch to mkVimPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored and nix-infra-bot committed Nov 7, 2024
1 parent 77b4958 commit b0ebcaa
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions plugins/by-name/helm/default.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,12 @@
{
lib,
helpers,
config,
pkgs,
...
}:
with lib;
let
cfg = config.plugins.helm;
in
{
meta.maintainers = [ maintainers.GaetanLepage ];

options.plugins.helm = {
enable = mkEnableOption "vim-helm";

package = lib.mkPackageOption pkgs "vim-helm" {
default = [
"vimPlugins"
"vim-helm"
];
};
};
helpers.vim-plugin.mkVimPlugin {
name = "helm";
originalName = "vim-helm";
package = "vim-helm";

config = mkIf cfg.enable { extraPlugins = [ cfg.package ]; };
maintainers = [ lib.maintainers.GaetanLepage ];
}

0 comments on commit b0ebcaa

Please sign in to comment.