2023-10-15 16:32:16 +01:00
|
|
|
{
|
|
|
|
lib,
|
2023-11-06 15:04:08 +01:00
|
|
|
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
|
|
|
|
2024-01-26 15:33:09 +01:00
|
|
|
options.plugins.hmts = {
|
|
|
|
enable = mkEnableOption "hmts.nvim";
|
|
|
|
|
|
|
|
package = helpers.mkPackageOption "hmts.nvim" pkgs.vimPlugins.hmts-nvim;
|
|
|
|
};
|
2023-10-15 16:32:16 +01:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2024-01-26 15:33:09 +01:00
|
|
|
warnings = optional (!config.plugins.treesitter.enable) [
|
|
|
|
"Nixvim: treesitter-refactor 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
|
|
|
};
|
|
|
|
}
|