From 361f2d58a0e6009ca35e44c862e785f12addc3a2 Mon Sep 17 00:00:00 2001 From: JSchrtke <31078741+JSchrtke@users.noreply.github.com> Date: Wed, 27 Oct 2021 15:58:43 +0200 Subject: add -NoProfile to powershell invocations (#202) Fixes #201. --- lua/nvim-lsp-installer/installers/shell.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lua/nvim-lsp-installer/installers/shell.lua') 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, } -- cgit v1.2.3-70-g09d2