plugins/vimtex: fix error when user does not set any extraConfig option (#216)

This commit is contained in:
Gaétan Lepage 2023-03-02 14:01:31 +01:00 committed by GitHub
parent e439cb79df
commit 6e027c40f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,13 +13,17 @@ in
package = helpers.mkPackageOption "vimtex" pkgs.vimPlugins.vimtex; package = helpers.mkPackageOption "vimtex" pkgs.vimPlugins.vimtex;
extraConfig = helpers.mkNullOrOption types.attrs '' extraConfig = mkOption {
type = types.attrs;
description = ''
The configuration options for vimtex without the 'vimtex_' prefix. The configuration options for vimtex without the 'vimtex_' prefix.
Example: To set 'vimtex_compiler_enabled' to 1, write Example: To set 'vimtex_compiler_enabled' to 1, write
extraConfig = { extraConfig = {
compiler_enabled = true; compiler_enabled = true;
}; };
''; '';
default = {};
};
}; };
config = let config = let