nix-community.nixvim/plugins/utils/hmts.nix
2023-10-15 17:32:16 +02:00

22 lines
401 B
Nix

{
pkgs,
config,
lib,
...
}:
with lib; let
cfg = config.plugins.hmts;
helpers = import ../helpers.nix {inherit lib;};
in {
options.plugins.hmts =
helpers.extraOptionsOptions
// {
enable = mkEnableOption "hmts.nvim";
package = helpers.mkPackageOption "hmts.nvim" pkgs.vimPlugins.hmts-nvim;
};
config = mkIf cfg.enable {
extraPlugins = [cfg.package];
};
}