aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-registry/rescript-lsp/init.lua
blob: 8cf39adb2e29f8df918f5c8f985ca15ca64f061c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
local Pkg = require "mason.core.package"
local github = require "mason.core.managers.github"

return Pkg.new {
    name = "rescript-lsp",
    desc = [[Language Server for ReScript.]],
    homepage = "https://github.com/rescript-lang/rescript-vscode",
    languages = { Pkg.Lang.ReScript },
    categories = { Pkg.Cat.LSP },
    ---@async
    install = function()
        github
            .unzip_release_file({
                repo = "rescript-lang/rescript-vscode",
                asset_file = function(version)
                    return ("rescript-vscode-%s.vsix"):format(version)
                end,
            })
            .with_receipt()
    end,
}