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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
547 B
Nix
Raw Normal View History

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