diff options
Diffstat (limited to 'lua/nvim-lsp-installer')
4 files changed, 8 insertions, 9 deletions
diff --git a/lua/nvim-lsp-installer/installers/shell.lua b/lua/nvim-lsp-installer/installers/shell.lua index 6cbe26ae..bfdb5dea 100644 --- a/lua/nvim-lsp-installer/installers/shell.lua +++ b/lua/nvim-lsp-installer/installers/shell.lua @@ -33,7 +33,7 @@ function M.raw(raw_script, opts) end function M.remote(url, opts) - return M.raw(("curl -s -f %q | bash"):format(url), opts) + return M.raw(("wget -nv -O - %q | bash"):format(url), opts) end return M diff --git a/lua/nvim-lsp-installer/servers/denols/init.lua b/lua/nvim-lsp-installer/servers/denols/init.lua index fd8f684d..3ab7a8e2 100644 --- a/lua/nvim-lsp-installer/servers/denols/init.lua +++ b/lua/nvim-lsp-installer/servers/denols/init.lua @@ -4,15 +4,14 @@ local shell = require "nvim-lsp-installer.installers.shell" local root_dir = server.get_server_root_path "denols" -local install_cmd = [=[ -export DENO_INSTALL="$PWD" -curl -fsSL https://deno.land/x/install/install.sh | sh -]=] - return server.Server:new { name = "denols", root_dir = root_dir, - installer = shell.raw(install_cmd), + installer = shell.remote("https://deno.land/x/install/install.sh", { + env = { + DENO_INSTALL = root_dir, + }, + }), default_options = { cmd = { path.concat { root_dir, "bin", "deno" }, "lsp" }, }, diff --git a/lua/nvim-lsp-installer/servers/elixirls/init.lua b/lua/nvim-lsp-installer/servers/elixirls/init.lua index 52f3acd0..5fa5e408 100644 --- a/lua/nvim-lsp-installer/servers/elixirls/init.lua +++ b/lua/nvim-lsp-installer/servers/elixirls/init.lua @@ -8,7 +8,7 @@ return server.Server:new { name = "elixirls", root_dir = root_dir, installer = shell.raw [[ - curl -fLO https://github.com/elixir-lsp/elixir-ls/releases/download/v0.7.0/elixir-ls.zip; + wget -O elixir-ls.zip https://github.com/elixir-lsp/elixir-ls/releases/download/v0.7.0/elixir-ls.zip; unzip elixir-ls.zip -d elixir-ls; rm elixir-ls.zip; chmod +x elixir-ls/language_server.sh; diff --git a/lua/nvim-lsp-installer/servers/kotlin_language_server/init.lua b/lua/nvim-lsp-installer/servers/kotlin_language_server/init.lua index d17da911..8aaf77de 100644 --- a/lua/nvim-lsp-installer/servers/kotlin_language_server/init.lua +++ b/lua/nvim-lsp-installer/servers/kotlin_language_server/init.lua @@ -8,7 +8,7 @@ return server.Server:new { name = "kotlin_language_server", root_dir = root_dir, installer = shell.raw [[ - curl -fLO https://github.com/fwcd/kotlin-language-server/releases/latest/download/server.zip; + wget -O server.zip https://github.com/fwcd/kotlin-language-server/releases/latest/download/server.zip; unzip server.zip; rm server.zip; ]], |
