From d2ec0c0070c01ba0e3e8926031cfe848a016df44 Mon Sep 17 00:00:00 2001 From: William Boman Date: Fri, 10 Sep 2021 13:38:39 +0200 Subject: rewrite some installers for broader cross-platform support (#85) - Remove all usage of zx in favour of native Lua (via libuv) - Introduce new set of `std` installers The following servers will have to be reinstalled due to this change: 1. clangd 2. solargraph 3. sumneko_lua 4. tailwindcss --- lua/nvim-lsp-installer/servers/rescriptls/init.lua | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'lua/nvim-lsp-installer/servers/rescriptls/init.lua') diff --git a/lua/nvim-lsp-installer/servers/rescriptls/init.lua b/lua/nvim-lsp-installer/servers/rescriptls/init.lua index f7aad87a..f61ff241 100644 --- a/lua/nvim-lsp-installer/servers/rescriptls/init.lua +++ b/lua/nvim-lsp-installer/servers/rescriptls/init.lua @@ -1,24 +1,13 @@ local server = require "nvim-lsp-installer.server" local path = require "nvim-lsp-installer.path" -local installers = require "nvim-lsp-installer.installers" -local shell = require "nvim-lsp-installer.installers.shell" +local std = require "nvim-lsp-installer.installers.std" local root_dir = server.get_server_root_path "rescriptls" return server.Server:new { name = "rescriptls", root_dir = root_dir, - installer = installers.when { - unix = shell.bash [[ - curl -fs https://api.github.com/repos/rescript-lang/rescript-vscode/releases/latest \ - | grep "browser_download_url.*vsix" \ - | cut -d : -f 2,3 \ - | tr -d '"' \ - | wget -i - -O vscode-rescript.vsix; - unzip -q -o vscode-rescript.vsix; - rm -f vscode-rescript.vsix; - ]], - }, + installer = std.unzip_remote "https://github.com/rescript-lang/rescript-vscode/releases/download/1.1.3/rescript-vscode-1.1.3.vsix", default_options = { cmd = { "node", path.concat { root_dir, "extension", "server", "out", "server.js" }, "--stdio" }, }, -- cgit v1.2.3-70-g09d2