blob: 77c6cb6dbbcb16ceae525e130e3797e975c287ad (
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
29
30
|
local Pkg = require "mason-core.package"
local github = require "mason-core.managers.github"
local platform = require "mason-core.platform"
local path = require "mason-core.path"
return Pkg.new {
name = "kotlin-language-server",
desc = [[Kotlin code completion, linting and more for any editor/IDE using the Language Server Protocol]],
homepage = "https://github.com/fwcd/kotlin-language-server",
languages = { Pkg.Lang.Kotlin },
categories = { Pkg.Cat.LSP },
---@async
---@param ctx InstallContext
install = function(ctx)
github
.unzip_release_file({
repo = "fwcd/kotlin-language-server",
asset_file = "server.zip",
})
.with_receipt()
ctx:link_bin(
"kotlin-language-server",
path.concat {
"server",
"bin",
platform.is.win and "kotlin-language-server.bat" or "kotlin-language-server",
}
)
end,
}
|