mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 10:48:35 +02:00
Migrate all users of `mkVimPlugin` and `mkNeovimPlugin` to use the new `package` argument instead of the old `defaultPackage` argument.
25 lines
562 B
Nix
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 ]; };
|
|
}
|