aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/installers/shell.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/installers/shell.lua')
-rw-r--r--lua/nvim-lsp-installer/installers/shell.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/nvim-lsp-installer/installers/shell.lua b/lua/nvim-lsp-installer/installers/shell.lua
index eef0e01d..53feda70 100644
--- a/lua/nvim-lsp-installer/installers/shell.lua
+++ b/lua/nvim-lsp-installer/installers/shell.lua
@@ -6,10 +6,10 @@ local M = {}
---@param opts {shell: string, cmd: string[], env: table|nil}
local function shell(opts)
---@type ServerInstallerFunction
- return function(server, callback, context)
+ return function(_, callback, context)
local _, stdio = process.spawn(opts.shell, {
args = opts.args,
- cwd = server.root_dir,
+ cwd = context.install_dir,
stdio_sink = context.stdio_sink,
env = process.graft_env(opts.env or {}),
}, callback)