nix-community.nixvim/plugins/utils/conjure.nix

20 lines
317 B
Nix

{
lib,
helpers,
config,
pkgs,
...
}:
with lib; let
cfg = config.plugins.conjure;
in {
options.plugins.conjure = {
enable = mkEnableOption "Conjure";
package = helpers.mkPackageOption "conjure" pkgs.vimPlugins.conjure;
};
config = mkIf cfg.enable {
extraPlugins = [cfg.package];
};
}