nix-community.nixvim/plugins/languages/texpresso.nix

32 lines
745 B
Nix
Raw Normal View History

2024-04-26 10:47:59 +02:00
{
lib,
helpers,
config,
pkgs,
...
}:
with lib;
# This plugin has no configuration, so we use `mkVimPlugin` without the `globalPrefix` argument to
# avoid the creation of the `settings` option.
2024-05-05 19:39:35 +02:00
helpers.vim-plugin.mkVimPlugin config {
name = "texpresso";
originalName = "texpresso.vim";
defaultPackage = pkgs.vimPlugins.texpresso-vim;
2024-04-26 10:47:59 +02:00
2024-05-05 19:39:35 +02:00
maintainers = [ maintainers.nickhu ];
2024-04-26 10:47:59 +02:00
2024-05-05 19:39:35 +02:00
extraOptions = {
texpressoPackage = mkOption {
type = with types; nullOr package;
default = pkgs.texpresso;
example = null;
description = ''
The `texpresso` package to use.
Set to `null` to not install any package.
'';
2024-04-26 10:47:59 +02:00
};
2024-05-05 19:39:35 +02:00
};
2024-04-26 10:47:59 +02:00
2024-05-05 19:39:35 +02:00
extraConfig = cfg: { extraPackages = [ cfg.texpressoPackage ]; };
}