plugins/vimtex: formatting

This commit is contained in:
Gaetan Lepage 2024-01-08 15:34:50 +01:00 committed by Gaétan Lepage
parent 3be30efc3b
commit 1a7a726a98

View file

@ -37,7 +37,7 @@ in
installTexLive = mkOption {
type = types.bool;
description = ''
Whether or not to install TexLive.
Whether or not to install TexLive.
See https://nixos.wiki/wiki/TexLive.
'';
default = false;
@ -69,7 +69,14 @@ in
extraPlugins = [cfg.package];
extraPackages =
basePackages ++ (lib.optionals (hasAttr "${cfg.viewMethod}" viewMethodAndPDFViewerPairs) viewMethodAndPDFViewerPairs."${cfg.viewMethod}");
basePackages
++ (
optionals
(
hasAttr "${cfg.viewMethod}" viewMethodAndPDFViewerPairs
)
viewMethodAndPDFViewerPairs."${cfg.viewMethod}"
);
globals = mapAttrs' (name: nameValuePair ("vimtex_" + name)) globals;
};