nix-community.nixvim/plugins/by-name/hmts/default.nix
2024-12-11 11:59:27 -06:00

31 lines
547 B
Nix

{
lib,
config,
pkgs,
...
}:
let
cfg = config.plugins.hmts;
in
{
meta.maintainers = [ lib.maintainers.GaetanLepage ];
options.plugins.hmts = {
enable = lib.mkEnableOption "hmts.nvim";
package = lib.mkPackageOption pkgs "hmts.nvim" {
default = [
"vimPlugins"
"hmts-nvim"
];
};
};
config = lib.mkIf cfg.enable {
warnings = lib.optional (
!config.plugins.treesitter.enable
) "Nixvim: hmts needs treesitter to function as intended";
extraPlugins = [ cfg.package ];
};
}