mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
fix bug in helpers
This commit is contained in:
parent
da8e5a4736
commit
70791a75fa
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ rec {
|
||||||
(n: v: if head (stringToCharacters n) == "@" then
|
(n: v: if head (stringToCharacters n) == "@" then
|
||||||
toLuaObject v
|
toLuaObject v
|
||||||
else "[${toLuaObject n}] = " + (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
|
else if builtins.isList args then
|
||||||
"{" + concatMapStringsSep "," toLuaObject args + "}"
|
"{" + concatMapStringsSep "," toLuaObject args + "}"
|
||||||
else if builtins.isString args then
|
else if builtins.isString args then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue