mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +02:00
26 lines
514 B
Nix
26 lines
514 B
Nix
{
|
|
lib,
|
|
helpers,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.plugins.hmts;
|
|
in {
|
|
meta.maintainers = [maintainers.GaetanLepage];
|
|
|
|
options.plugins.hmts = {
|
|
enable = mkEnableOption "hmts.nvim";
|
|
|
|
package = helpers.mkPackageOption "hmts.nvim" pkgs.vimPlugins.hmts-nvim;
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
warnings = optional (!config.plugins.treesitter.enable) [
|
|
"Nixvim: treesitter-refactor needs treesitter to function as intended"
|
|
];
|
|
|
|
extraPlugins = [cfg.package];
|
|
};
|
|
}
|