aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/denols/init.lua
blob: 6df285107bec0af60950bf648e9a9e86a208ad98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
local server = require("nvim-lsp-installer.server")
local path = require("nvim-lsp-installer.path")
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),
    default_options = {
        cmd = { path.concat { root_dir, "bin", "deno" }, "lsp" },
    },
}