Skip to content

Commit

Permalink
plugins/vimtex: fix error when user does not set any extraConfig opti…
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Mar 2, 2023
1 parent e439cb7 commit 6e027c4
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions plugins/languages/vimtex.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ in

package = helpers.mkPackageOption "vimtex" pkgs.vimPlugins.vimtex;

extraConfig = helpers.mkNullOrOption types.attrs ''
The configuration options for vimtex without the 'vimtex_' prefix.
Example: To set 'vimtex_compiler_enabled' to 1, write
extraConfig = {
compiler_enabled = true;
};
'';
extraConfig = mkOption {
type = types.attrs;
description = ''
The configuration options for vimtex without the 'vimtex_' prefix.
Example: To set 'vimtex_compiler_enabled' to 1, write
extraConfig = {
compiler_enabled = true;
};
'';
default = {};
};
};

config = let
Expand Down

0 comments on commit 6e027c4

Please sign in to comment.