nix-community.nixvim/plugins/languages/texpresso.nix
Matt Sturgeon 1fd4b6c739
plugins: migrate defaultPackage -> package
Migrate all users of `mkVimPlugin` and `mkNeovimPlugin` to use the new
`package` argument instead of the old `defaultPackage` argument.
2024-09-04 03:29:34 +01:00

25 lines
562 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";
originalName = "texpresso.vim";
package = "texpresso-vim";
maintainers = [ maintainers.nickhu ];
extraOptions = {
texpressoPackage = helpers.mkPackageOption {
name = "texpresso";
default = pkgs.texpresso;
};
};
extraConfig = cfg: { extraPackages = [ cfg.texpressoPackage ]; };
}