mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
lib/lua: pad table ,
with a space
Makes toLuaObject's output a little more readable.
This commit is contained in:
parent
00ce71f51a
commit
53a9599cc4
2 changed files with 9 additions and 9 deletions
|
@ -43,7 +43,7 @@ rec {
|
|||
"{ }"
|
||||
else
|
||||
"{"
|
||||
+ (concatStringsSep "," (
|
||||
+ (concatStringsSep ", " (
|
||||
mapAttrsToList (
|
||||
n: v:
|
||||
let
|
||||
|
@ -63,7 +63,7 @@ rec {
|
|||
))
|
||||
+ "}"
|
||||
else if builtins.isList args then
|
||||
"{" + concatMapStringsSep "," toLuaObject args + "}"
|
||||
"{" + concatMapStringsSep ", " toLuaObject args + "}"
|
||||
else if builtins.isString args then
|
||||
# This should be enough!
|
||||
builtins.toJSON args
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue