mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
lib/options: mkAttrsOf, mkListOf, mkAttributeSet should accept raw values
This commit is contained in:
parent
c04dda021b
commit
caef39133f
1 changed files with 3 additions and 3 deletions
|
@ -182,17 +182,17 @@ rec {
|
||||||
mkStr' = args: mkNullableWithRaw' (args // { type = types.str; });
|
mkStr' = args: mkNullableWithRaw' (args // { type = types.str; });
|
||||||
mkStr = pluginDefault: description: mkStr' { inherit pluginDefault description; };
|
mkStr = pluginDefault: description: mkStr' { inherit pluginDefault description; };
|
||||||
|
|
||||||
mkAttributeSet' = args: mkNullable' (args // { type = types.attrs; });
|
mkAttributeSet' = args: mkNullableWithRaw' (args // { type = types.attrs; });
|
||||||
mkAttributeSet = pluginDefault: description: mkAttributeSet' { inherit pluginDefault description; };
|
mkAttributeSet = pluginDefault: description: mkAttributeSet' { inherit pluginDefault description; };
|
||||||
|
|
||||||
mkListOf' =
|
mkListOf' =
|
||||||
{ type, ... }@args: mkNullable' (args // { type = with types; listOf (maybeRaw type); });
|
{ type, ... }@args: mkNullableWithRaw' (args // { type = with types; listOf (maybeRaw type); });
|
||||||
mkListOf =
|
mkListOf =
|
||||||
type: pluginDefault: description:
|
type: pluginDefault: description:
|
||||||
mkListOf' { inherit type pluginDefault description; };
|
mkListOf' { inherit type pluginDefault description; };
|
||||||
|
|
||||||
mkAttrsOf' =
|
mkAttrsOf' =
|
||||||
{ type, ... }@args: mkNullable' (args // { type = with types; attrsOf (maybeRaw type); });
|
{ type, ... }@args: mkNullableWithRaw' (args // { type = with types; attrsOf (maybeRaw type); });
|
||||||
mkAttrsOf =
|
mkAttrsOf =
|
||||||
type: pluginDefault: description:
|
type: pluginDefault: description:
|
||||||
mkAttrsOf' { inherit type pluginDefault description; };
|
mkAttrsOf' { inherit type pluginDefault description; };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue