[ANN] vim-rescript v3.0.0 release
Hi everyone!!!
We've just released the newest plugin for Vim. This release has some important changes.
We only provide the Vim runtime files that provide the following features:
- Indentation
- Syntax Highlight
- Filetype detection
- We removed the vendored server and native Vim commands (e.g
:RescriptBuild
, etc)
- Better syntax highlighting
The rescript-language-server
server is a dedicated package published on NPM. Users must do
installation and setup to get all the features.
If you are using mason.nvim you can install the ReScript Language Server using the command
MasonInstall rescript-language-server
npm install -g @rescript/language-server
Install nvim-lspconfig package.
local lspconfig = require('lspconfig')
lspconfig.rescriptls.setup{}
For more details, see server configuration
"languageserver": {
"rescript": {
"enable": true,
"module": "rescript-language-server",
"args": ["--node-ipc"],
"filetypes": ["rescript"],
"rootPatterns": ["rescript.json", "bsconfig.json"]
}
}