diff options
| -rw-r--r-- | CUSTOM_SERVERS.md | 2 | ||||
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | doc/nvim-lsp-installer.txt | 2 | ||||
| -rw-r--r-- | lua/nvim-lsp-installer/installers/shell.lua | 2 | ||||
| -rw-r--r-- | lua/nvim-lsp-installer/servers/denols/init.lua | 11 | ||||
| -rw-r--r-- | lua/nvim-lsp-installer/servers/elixirls/init.lua | 2 | ||||
| -rw-r--r-- | lua/nvim-lsp-installer/servers/kotlin_language_server/init.lua | 2 |
7 files changed, 11 insertions, 12 deletions
diff --git a/CUSTOM_SERVERS.md b/CUSTOM_SERVERS.md index c08a536f..4e1614ce 100644 --- a/CUSTOM_SERVERS.md +++ b/CUSTOM_SERVERS.md @@ -92,7 +92,7 @@ available installers that are available out of the box. local shell = require "nvim-lsp-installer.installers.shell" 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; ]] @@ -27,7 +27,7 @@ Requires: - neovim `>= 0.5.0` - [neovim/nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) -- bash(1), git(1), wget(1), curl(1), unzip(1), tar(1) +- bash(1), git(1), wget(1), unzip(1), tar(1) - (optional) Node.js (LTS) & npm. Some LSP servers will need a Node runtime. - (optional) Python3 & pip3. Some LSP servers will need a Python3 runtime. - (optional) go. Some LSP servers will need a Go runtime. diff --git a/doc/nvim-lsp-installer.txt b/doc/nvim-lsp-installer.txt index 644c6f51..c77a952c 100644 --- a/doc/nvim-lsp-installer.txt +++ b/doc/nvim-lsp-installer.txt @@ -14,7 +14,7 @@ Requires: - neovim `nightly (>= 0.5.0)` - neovim/nvim-lspconfig (https://github.com/neovim/nvim-lspconfig) -- bash(1), git(1), wget(1), curl(1), unzip(1), tar(1) +- bash(1), git(1), wget(1), unzip(1), tar(1) - (optional) Node.js (LTS) & npm. Some LSP servers will need a Node runtime. - (optional) Python3 & pip3. Some LSP servers will need a Python3 runtime. - (optional) go. Some LSP servers will need a Go runtime. 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; ]], |
