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