From 621c8c6d484ed402eab0d5e44c608d4296562a96 Mon Sep 17 00:00:00 2001 From: William Boman Date: Thu, 26 May 2022 00:32:28 +0200 Subject: fix(spawn): don't check executable when spawning with custom PATH (#721) --- 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 a1c55c0f..764468f9 100644 --- a/lua/nvim-lsp-installer/core/spawn.lua +++ b/lua/nvim-lsp-installer/core/spawn.lua @@ -85,7 +85,7 @@ setmetatable(spawn, { local cmd = self._aliases[normalized_cmd] or normalized_cmd - if args.check_executable ~= false and not is_executable(cmd) then + if args.with_paths == 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