blob: b84b9032acb856d87cffff124158d1afd7b06795 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
local Pkg = require "mason-core.package"
local _ = require "mason-core.functional"
local github = require "mason-core.managers.github"
local platform = require "mason-core.platform"
return Pkg.new {
name = "elixir-ls",
desc = _.dedent [[
A frontend-independent IDE "smartness" server for Elixir. Implements the "Language Server Protocol" standard and
provides debugger support via the "Debug Adapter Protocol".
]],
homepage = "https://github.com/elixir-lsp/elixir-ls",
languages = { Pkg.Lang.Elixir },
categories = { Pkg.Cat.LSP, Pkg.Cat.DAP },
---@async
---@param ctx InstallContext
install = function(ctx)
github
.unzip_release_file({
repo = "elixir-lsp/elixir-ls",
asset_file = "elixir-ls.zip",
})
.with_receipt()
ctx:link_bin("elixir-ls", platform.is.win and "language_server.bat" or "language_server.sh")
ctx:link_bin("elixir-ls-debugger", platform.is.win and "debugger.bat" or "debugger.sh")
end,
}
|