mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
helpers: fix toLuaObject ignoring empty objects (#213)
This commit is contained in:
parent
0620ffc889
commit
92867386c7
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ with lib; rec {
|
||||||
if head (stringToCharacters n) == "@"
|
if head (stringToCharacters n) == "@"
|
||||||
then toLuaObject v
|
then toLuaObject v
|
||||||
else "[${toLuaObject n}] = " + (toLuaObject v))
|
else "[${toLuaObject n}] = " + (toLuaObject v))
|
||||||
(filterAttrs (n: v: !isNull v && toLuaObject v != "{}") args)))
|
(filterAttrs (n: v: !isNull v) args)))
|
||||||
+ "}"
|
+ "}"
|
||||||
else if builtins.isList args
|
else if builtins.isList args
|
||||||
then "{" + concatMapStringsSep "," toLuaObject args + "}"
|
then "{" + concatMapStringsSep "," toLuaObject args + "}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue