Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forum post vim-rescript v3 release #73

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions draft-v3-release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
[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:

1. Indentation
2. Syntax Highlight
3. Filetype detection

## Breaking Changes

- We removed the vendored server and native Vim commands (e.g `:RescriptBuild`, etc)

## Improvements

- 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](https://github.com/williamboman/mason.nvim) you can install the ReScript Language Server using the command `MasonInstall rescript-language-server`

```sh
npm install -g @rescript/language-server
```

## Noevim LSP builtin users
aspeddro marked this conversation as resolved.
Show resolved Hide resolved

Install nvim-lspconfig package.

```lua
local lspconfig = require('lspconfig')

lspconfig.rescriptls.setup{}
```

For more details, see [server configuration](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#rescriptls)

## vim-coc users

```json
"languageserver": {
"rescript": {
"enable": true,
"module": "rescript-language-server",
"args": ["--node-ipc"],
"filetypes": ["rescript"],
"rootPatterns": ["rescript.json", "bsconfig.json"]
}
}
```