aboutsummaryrefslogtreecommitdiffstats
path: root/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
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')
-rw-r--r--lua/nvim-lsp-installer/core/spawn.lua2
-rw-r--r--lua/nvim-lsp-installer/core/ui/display.lua2
2 files changed, 2 insertions, 2 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)
diff --git a/lua/nvim-lsp-installer/core/ui/display.lua b/lua/nvim-lsp-installer/core/ui/display.lua
index c80738cd..df12eade 100644
--- a/lua/nvim-lsp-installer/core/ui/display.lua
+++ b/lua/nvim-lsp-installer/core/ui/display.lua
@@ -317,7 +317,7 @@ function M.new_view_only_win(name)
bufhidden = "wipe",
buflisted = false,
filetype = "lsp-installer",
- undolevels = -1
+ undolevels = -1,
}
local win_opts = {