diff options
Diffstat (limited to 'lua/nvim-lsp-installer/servers/denols/init.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/denols/init.lua | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lua/nvim-lsp-installer/servers/denols/init.lua b/lua/nvim-lsp-installer/servers/denols/init.lua index 3ab7a8e2..94588564 100644 --- a/lua/nvim-lsp-installer/servers/denols/init.lua +++ b/lua/nvim-lsp-installer/servers/denols/init.lua @@ -1,5 +1,6 @@ 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 root_dir = server.get_server_root_path "denols" @@ -7,11 +8,13 @@ local root_dir = server.get_server_root_path "denols" return server.Server:new { name = "denols", root_dir = root_dir, - installer = shell.remote("https://deno.land/x/install/install.sh", { - env = { - DENO_INSTALL = root_dir, - }, - }), + installer = installers.when { + unix = shell.remote_bash("https://deno.land/x/install/install.sh", { + env = { + DENO_INSTALL = root_dir, + }, + }), + }, default_options = { cmd = { path.concat { root_dir, "bin", "deno" }, "lsp" }, }, |
