aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/elixirls/init.lua
blob: 98dc7a7a29bf2f1f08a32038daa8b156c4ecfe10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
local server = require "nvim-lsp-installer.server"
local path = require "nvim-lsp-installer.path"
local std = require "nvim-lsp-installer.installers.std"

return function(name, root_dir)
    return server.Server:new {
        name = name,
        root_dir = root_dir,
        installer = {
            std.unzip_remote(
                "https://github.com/elixir-lsp/elixir-ls/releases/download/v0.8.1/elixir-ls.zip",
                "elixir-ls"
            ),
            std.chmod("+x", { "elixir-ls/language_server.sh" }),
        },
        default_options = {
            cmd = { path.concat { root_dir, "elixir-ls", "language_server.sh" } },
        },
    }
end