nix-community.nixvim/plugins/by-name/hmts/default.nix

34 lines
554 B
Nix
Raw Normal View History

2023-10-15 16:32:16 +01:00
{
lib,
helpers,
config,
pkgs,
2023-10-15 16:32:16 +01:00
...
}:
2024-05-05 19:39:35 +02:00
with lib;
let
2023-10-15 16:32:16 +01:00
cfg = config.plugins.hmts;
2024-05-05 19:39:35 +02:00
in
{
meta.maintainers = [ maintainers.GaetanLepage ];
2023-10-15 16:32:16 +01:00
options.plugins.hmts = {
enable = mkEnableOption "hmts.nvim";
package = lib.mkPackageOption pkgs "hmts.nvim" {
default = [
"vimPlugins"
"hmts-nvim"
];
};
};
2023-10-15 16:32:16 +01:00
config = mkIf cfg.enable {
warnings = optional (!config.plugins.treesitter.enable) [
"Nixvim: hmts needs treesitter to function as intended"
];
2024-05-05 19:39:35 +02:00
extraPlugins = [ cfg.package ];
2023-10-15 16:32:16 +01:00
};
}