diff --git a/plugins/helpers.nix b/plugins/helpers.nix index 62d3c577..32eba33c 100644 --- a/plugins/helpers.nix +++ b/plugins/helpers.nix @@ -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 diff --git a/tests/flake.nix b/tests/flake.nix index 803be217..8fc73a7d 100644 --- a/tests/flake.nix +++ b/tests/flake.nix @@ -217,6 +217,10 @@ # extraConfigLua = (builtins.readFile ./nvim-extra-lua.lua); }; + issue-71 = build { + maps.normal."hb" = "lua require('gitsigns').blame_line{full=true}"; + }; + lspkind = build { plugins = { lsp = {