modules/dependencies: add texpresso

This commit is contained in:
Gaetan Lepage 2025-04-07 17:18:17 +02:00 committed by nix-infra-bot
parent 07c767cd2f
commit 090c4e0f7c
2 changed files with 11 additions and 8 deletions

View file

@ -19,6 +19,7 @@ let
default = "nodejs";
example = "pkgs.nodejs_22";
};
texpresso.default = "texpresso";
tree-sitter.default = "tree-sitter";
typst.default = "typst";
ueberzug.default = "ueberzugpp";

View file

@ -1,7 +1,5 @@
{
lib,
helpers,
pkgs,
...
}:
with lib;
@ -14,11 +12,15 @@ lib.nixvim.plugins.mkVimPlugin {
maintainers = [ maintainers.nickhu ];
extraOptions = {
texpressoPackage = lib.mkPackageOption pkgs "texpresso" {
nullable = true;
};
};
imports = [
# TODO: added 2025-04-07, remove after 25.05
(lib.nixvim.mkRemovedPackageOptionModule {
plugin = "texpresso";
packageName = "texpresso";
})
];
extraConfig = cfg: { extraPackages = [ cfg.texpressoPackage ]; };
extraConfig = {
dependencies.texpresso.enable = lib.mkDefault true;
};
}