mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
28 lines
509 B
Nix
28 lines
509 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.mkPluginPackageOption "hmts.nvim" pkgs.vimPlugins.hmts-nvim;
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
warnings = optional (!config.plugins.treesitter.enable) [
|
|
"Nixvim: hmts needs treesitter to function as intended"
|
|
];
|
|
|
|
extraPlugins = [ cfg.package ];
|
|
};
|
|
}
|