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.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/installers/shell.lua b/lua/nvim-lsp-installer/installers/shell.lua
index 62506155..e9bef862 100644
--- a/lua/nvim-lsp-installer/installers/shell.lua
+++ b/lua/nvim-lsp-installer/installers/shell.lua
@@ -79,7 +79,10 @@ function M.powershell(raw_script, opts)
local default_opts = {
env = {},
-- YIKES https://stackoverflow.com/a/63301751
- prefix = "$ProgressPreference = 'SilentlyContinue';",
+ prefix = [[
+ $ProgressPreference = 'SilentlyContinue';
+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
+ ]],
}
opts = vim.tbl_deep_extend("force", default_opts, opts or {})