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

20 lines
319 B
Nix

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