diff --git a/plugins/helpers.nix b/plugins/helpers.nix index 950e2b0b..9764b4d4 100644 --- a/plugins/helpers.nix +++ b/plugins/helpers.nix @@ -17,7 +17,7 @@ rec { (n: v: if head (stringToCharacters n) == "@" then toLuaObject v else "[${toLuaObject n}] = " + (toLuaObject v)) - (filterAttrs (n: v: !isNull v || v == {}) args))) + "}" + (filterAttrs (n: v: !isNull v && toLuaObject v != "{}") args))) + "}" else if builtins.isList args then "{" + concatMapStringsSep "," toLuaObject args + "}" else if builtins.isString args then