mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
lib/options: add mkNullableWithRaw'
variant
This commit is contained in:
parent
84b2b0d90c
commit
e0b60bac8b
1 changed files with 5 additions and 1 deletions
|
@ -140,7 +140,11 @@ rec {
|
|||
type: default: description:
|
||||
mkNullable' { inherit type default description; };
|
||||
|
||||
mkNullableWithRaw = type: mkNullable (nixvimTypes.maybeRaw type);
|
||||
mkNullableWithRaw' =
|
||||
{ type, ... }@args: mkNullable' (args // { type = nixvimTypes.maybeRaw type; });
|
||||
mkNullableWithRaw =
|
||||
type: default: description:
|
||||
mkNullableWithRaw' { inherit type default description; };
|
||||
|
||||
mkStrLuaOr =
|
||||
type: default: desc:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue