diff options
| author | JSchrtke <31078741+JSchrtke@users.noreply.github.com> | 2021-10-27 15:58:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-27 15:58:43 +0200 |
| commit | 361f2d58a0e6009ca35e44c862e785f12addc3a2 (patch) | |
| tree | bf18359e7489d4aeca5efd7633a6ea95b72a2a26 /lua | |
| parent | fix jdtls config path on windows (#200) (diff) | |
| download | mason-361f2d58a0e6009ca35e44c862e785f12addc3a2.tar mason-361f2d58a0e6009ca35e44c862e785f12addc3a2.tar.gz mason-361f2d58a0e6009ca35e44c862e785f12addc3a2.tar.bz2 mason-361f2d58a0e6009ca35e44c862e785f12addc3a2.tar.lz mason-361f2d58a0e6009ca35e44c862e785f12addc3a2.tar.xz mason-361f2d58a0e6009ca35e44c862e785f12addc3a2.tar.zst mason-361f2d58a0e6009ca35e44c862e785f12addc3a2.zip | |
add -NoProfile to powershell invocations (#202)
Fixes #201.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-lsp-installer/installers/context.lua | 2 | ||||
| -rw-r--r-- | lua/nvim-lsp-installer/installers/shell.lua | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/installers/context.lua b/lua/nvim-lsp-installer/installers/context.lua index 13775fc0..b5be573f 100644 --- a/lua/nvim-lsp-installer/installers/context.lua +++ b/lua/nvim-lsp-installer/installers/context.lua @@ -42,7 +42,7 @@ local function fetch(url, callback) job_variants, 1, process.lazy_spawn("powershell.exe", { - args = { "-Command", table.concat(ps_script, ";") }, + args = { "-NoProfile", "-Command", table.concat(ps_script, ";") }, stdio_sink = stdio.sink, }) ) diff --git a/lua/nvim-lsp-installer/installers/shell.lua b/lua/nvim-lsp-installer/installers/shell.lua index 35f0cf6e..eef0e01d 100644 --- a/lua/nvim-lsp-installer/installers/shell.lua +++ b/lua/nvim-lsp-installer/installers/shell.lua @@ -8,6 +8,7 @@ local function shell(opts) ---@type ServerInstallerFunction return function(server, callback, context) local _, stdio = process.spawn(opts.shell, { + args = opts.args, cwd = server.root_dir, stdio_sink = context.stdio_sink, env = process.graft_env(opts.env or {}), @@ -82,6 +83,7 @@ function M.powershell(raw_script, opts) return shell { shell = "powershell.exe", + args = { "-NoProfile" }, cmd = (opts.prefix or "") .. raw_script, env = opts.env, } |
