nix-community.nixvim/plugins/by-name/texpresso/default.nix
Austin Horstman a7012e7864
treewide: originalName -> packPathName
We used to only think of it as the plugin repo's name, but we have been
needing to use it for the name of the plugin's packpath location.
2024-12-13 21:29:00 -06:00

24 lines
540 B
Nix

{
lib,
helpers,
pkgs,
...
}:
with lib;
# This plugin has no configuration, so we use `mkVimPlugin` without the `globalPrefix` argument to
# avoid the creation of the `settings` option.
helpers.vim-plugin.mkVimPlugin {
name = "texpresso";
packPathName = "texpresso.vim";
package = "texpresso-vim";
maintainers = [ maintainers.nickhu ];
extraOptions = {
texpressoPackage = lib.mkPackageOption pkgs "texpresso" {
nullable = true;
};
};
extraConfig = cfg: { extraPackages = [ cfg.texpressoPackage ]; };
}