plugin/hmts: init + tests (#646)

This commit is contained in:
Haseeb Majid 2023-10-15 16:32:16 +01:00 committed by GitHub
parent 0a31f39447
commit 0de47ebf77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 0 deletions

22
plugins/utils/hmts.nix Normal file
View file

@ -0,0 +1,22 @@
{
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];
};
}