nix-community.nixvim/plugins/languages/treesitter/hmts.nix

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

29 lines
509 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
...
}:
with lib;
let
cfg = config.plugins.hmts;
in
{
meta.maintainers = [ maintainers.GaetanLepage ];
2023-10-15 16:32:16 +01:00
options.plugins.hmts = {
enable = mkEnableOption "hmts.nvim";
package = helpers.mkPluginPackageOption "hmts.nvim" pkgs.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"
];
2023-10-15 16:32:16 +01:00
extraPlugins = [ cfg.package ];
};
}