diff options
Diffstat (limited to 'lua/nvim-lsp-installer/core/spawn.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/core/spawn.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/core/spawn.lua b/lua/nvim-lsp-installer/core/spawn.lua index 812848c3..17e2563f 100644 --- a/lua/nvim-lsp-installer/core/spawn.lua +++ b/lua/nvim-lsp-installer/core/spawn.lua @@ -87,7 +87,7 @@ setmetatable(spawn, { local cmd = self._aliases[normalized_cmd] or normalized_cmd - if args.with_paths == nil and args.check_executable ~= false and not is_executable(cmd) then + if (env and env.PATH) == nil and args.check_executable ~= false and not is_executable(cmd) then return Failure({ stderr = ("%s is not executable"):format(cmd), }, cmd) |
