mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-02 21:34:33 +02:00
helpers: fix toLuaObject string escapes (#72)
This commit is contained in:
parent
a601a75d0c
commit
f9cfb250e9
2 changed files with 6 additions and 2 deletions
|
@ -22,9 +22,9 @@ rec {
|
|||
"{" + concatMapStringsSep "," toLuaObject args + "}"
|
||||
else if builtins.isString args then
|
||||
# This should be enough!
|
||||
escapeShellArg args
|
||||
builtins.toJSON args
|
||||
else if builtins.isPath args then
|
||||
escapeShellArg args
|
||||
builtins.toJSON (toString args)
|
||||
else if builtins.isBool args then
|
||||
"${ boolToString args }"
|
||||
else if builtins.isFloat args then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue