diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-lsp-installer/core/fetch.lua | 3 | ||||
| -rw-r--r-- | lua/nvim-lsp-installer/installers/shell.lua | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lua/nvim-lsp-installer/core/fetch.lua b/lua/nvim-lsp-installer/core/fetch.lua index e3204cf2..9e5dc7f0 100644 --- a/lua/nvim-lsp-installer/core/fetch.lua +++ b/lua/nvim-lsp-installer/core/fetch.lua @@ -48,7 +48,8 @@ local function fetch(url, callback, opts) if platform.is_win then local ps_script = { - "$ProgressPreference = 'SilentlyContinue'", + "$ProgressPreference = 'SilentlyContinue';", + "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;", ("Write-Output (iwr %s -UseBasicParsing -Uri %q).Content"):format(HEADERS.iwr, url), } table.insert( 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 {}) |
