mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
lib/types: allow emptyTable as a valid rawLua value
This commit is contained in:
parent
451beb4eca
commit
6055d0f28c
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ rec {
|
||||||
description = "raw lua code";
|
description = "raw lua code";
|
||||||
descriptionClass = "noun";
|
descriptionClass = "noun";
|
||||||
merge = mergeEqualOption;
|
merge = mergeEqualOption;
|
||||||
check = isRawType;
|
check = v: (isRawType v) || (v ? __empty);
|
||||||
};
|
};
|
||||||
|
|
||||||
maybeRaw = type: types.either type rawLua;
|
maybeRaw = type: types.either type rawLua;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue