helpers: fix toLuaObject string escapes (#72)

This commit is contained in:
*Kim Zick 2022-11-27 16:53:49 -05:00 committed by GitHub
parent a601a75d0c
commit f9cfb250e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -22,9 +22,9 @@ rec {
"{" + concatMapStringsSep "," toLuaObject args + "}" "{" + concatMapStringsSep "," toLuaObject args + "}"
else if builtins.isString args then else if builtins.isString args then
# This should be enough! # This should be enough!
escapeShellArg args builtins.toJSON args
else if builtins.isPath args then else if builtins.isPath args then
escapeShellArg args builtins.toJSON (toString args)
else if builtins.isBool args then else if builtins.isBool args then
"${ boolToString args }" "${ boolToString args }"
else if builtins.isFloat args then else if builtins.isFloat args then

View file

@ -217,6 +217,10 @@
# extraConfigLua = (builtins.readFile ./nvim-extra-lua.lua); # extraConfigLua = (builtins.readFile ./nvim-extra-lua.lua);
}; };
issue-71 = build {
maps.normal."<leader>hb" = "<cmd>lua require('gitsigns').blame_line{full=true}<cr>";
};
lspkind = build { lspkind = build {
plugins = { plugins = {
lsp = { lsp = {