From b1e0f89f4c85a0767a76ff3e0db4c888b6ac3002 Mon Sep 17 00:00:00 2001 From: William Boman Date: Thu, 25 Nov 2021 06:55:18 +0100 Subject: fix(windows): unset PSMODULEPATH before invoking powershell scripts (#278) --- lua/nvim-lsp-installer/installers/shell.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (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 33d603a9..34cfc524 100644 --- a/lua/nvim-lsp-installer/installers/shell.lua +++ b/lua/nvim-lsp-installer/installers/shell.lua @@ -11,7 +11,9 @@ local function shell(opts) args = opts.args, cwd = context.install_dir, stdio_sink = context.stdio_sink, - env = process.graft_env(opts.env or {}), + env = process.graft_env(opts.env or {}, { + "PSMODULEPATH", -- https://github.com/williamboman/nvim-lsp-installer/issues/271 + }), }, callback) if stdio then -- cgit v1.2.3-70-g09d2