mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-27 11:08:53 +02:00
plugins/vimtex: formatting
This commit is contained in:
parent
3be30efc3b
commit
1a7a726a98
1 changed files with 9 additions and 2 deletions
|
@ -37,7 +37,7 @@ in
|
||||||
installTexLive = mkOption {
|
installTexLive = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
description = ''
|
description = ''
|
||||||
Whether or not to install TexLive.
|
Whether or not to install TexLive.
|
||||||
See https://nixos.wiki/wiki/TexLive.
|
See https://nixos.wiki/wiki/TexLive.
|
||||||
'';
|
'';
|
||||||
default = false;
|
default = false;
|
||||||
|
@ -69,7 +69,14 @@ in
|
||||||
extraPlugins = [cfg.package];
|
extraPlugins = [cfg.package];
|
||||||
|
|
||||||
extraPackages =
|
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;
|
globals = mapAttrs' (name: nameValuePair ("vimtex_" + name)) globals;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue