aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/core/spawn.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-05-26 00:32:28 +0200
committerGitHub <noreply@github.com>2022-05-26 00:32:28 +0200
commit621c8c6d484ed402eab0d5e44c608d4296562a96 (patch)
tree5902ffbd839fbcecef5e9e3cb9e9a3b3802dd284 /lua/nvim-lsp-installer/core/spawn.lua
parentrun autogen_metadata.lua (diff)
downloadmason-621c8c6d484ed402eab0d5e44c608d4296562a96.tar
mason-621c8c6d484ed402eab0d5e44c608d4296562a96.tar.gz
mason-621c8c6d484ed402eab0d5e44c608d4296562a96.tar.bz2
mason-621c8c6d484ed402eab0d5e44c608d4296562a96.tar.lz
mason-621c8c6d484ed402eab0d5e44c608d4296562a96.tar.xz
mason-621c8c6d484ed402eab0d5e44c608d4296562a96.tar.zst
mason-621c8c6d484ed402eab0d5e44c608d4296562a96.zip
fix(spawn): don't check executable when spawning with custom PATH (#721)
Diffstat (limited to 'lua/nvim-lsp-installer/core/spawn.lua')
-rw-r--r--lua/nvim-lsp-installer/core/spawn.lua2
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 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)