-
Is there any way to install https://github.com/rescript-lang/rescript-vscode/releases/tag/latest-master |
Beta Was this translation helpful? Give feedback.
Answered by
aspeddro
Oct 29, 2022
Replies: 2 comments
-
Add the following config to your init.lua. local index = require("mason-registry.index")
index["rescript-lsp-latest"] = "path/to/your/file/mason-rescript-latest" -- ~/.config/nvim/lua/xxx Then add the customized package file.
local Pkg = require("mason-core.package")
local github = require("mason-core.managers.github")
local path = require("mason-core.path")
local Optional = require("mason-core.optional")
return Pkg.new({
name = "rescript-lsp-latest",
desc = [[Language Server for ReScript.]],
homepage = "https://github.com/rescript-lang/rescript-vscode",
languages = { Pkg.Lang.ReScript },
categories = { Pkg.Cat.LSP },
---@async
---@param ctx InstallContext
install = function(ctx)
github
.unzip_release_file({
repo = "rescript-lang/rescript-vscode",
version = Optional.new("latest-master"),
asset_file = function(version)
return ("rescript-vscode-%s.vsix"):format("1.9.13")
end,
})
.with_receipt()
ctx:link_bin(
"rescript-lsp",
ctx:write_node_exec_wrapper(
"rescript-lsp",
path.concat({
"extension",
"server",
"out",
"server.js",
})
)
)
end,
})
|
Beta Was this translation helpful? Give feedback.
0 replies
-
After rescript-lang/rescript-vscode#613 just type |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
aspeddro
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After rescript-lang/rescript-vscode#613 just type
MasonInstall rescript-lsp@latest-master