blob: f12c111316cf90260f581ca2ac59d88be892a965 (
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
|
local Pkg = require "mason-core.package"
local github = require "mason-core.managers.github"
local platform = require "mason-core.platform"
return Pkg.new {
name = "elixir-ls",
desc = [[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")
end,
}
|