From 1c85bf298ac2eb71bb72e6a932abbea370f1d6d8 Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 30 May 2022 01:50:37 +0200 Subject: refactor(pip3): use with_paths to set venv path (#736) --- lua/nvim-lsp-installer/core/spawn.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/nvim-lsp-installer/core/spawn.lua') 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) -- cgit v1.2.3-70-g09d2