nix-community.nixvim/plugins/languages/texpresso.nix
Matt Sturgeon 2a054b039e
lib/vim-plugin: drop config arg
Instead, access it via an imported module
2024-09-02 10:33:50 +01:00

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