Skip to content

Commit f27d30f

Browse files
committed
updates
1 parent 95977ab commit f27d30f

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

Diff for: draft-v3-release.md

+34-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ We only provide the Vim runtime files that provide the following features:
99
1. Indentation
1010
2. Syntax Highlight
1111
3. Filetype detection
12-
4. Commenting support (Neovim v10 has a built-in commenting)
12+
4. Commenting support (Neovim v10 (only) has a built-in commenting)
1313

1414
## Breaking Changes
1515

@@ -22,7 +22,11 @@ We only provide the Vim runtime files that provide the following features:
2222
The `rescript-language-server` server is a dedicated package published on NPM. Users must do
2323
installation and setup to get all the features.
2424

25-
> 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`
25+
> 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`. Also you can install LSP pre-release using `MasonInstall rescript-language-server@next --force`
26+
27+
> When installing LSP via `mason.nvim` the binary will be available inside Neovim only
28+
29+
Or install globally:
2630

2731
```sh
2832
npm install -g @rescript/language-server
@@ -38,10 +42,26 @@ local lspconfig = require('lspconfig')
3842
lspconfig.rescriptls.setup{}
3943
```
4044

45+
### How enable `incrementalTypechecking`?
46+
47+
```lua
48+
lspconfig.rescriptls.setup{
49+
init_options = {
50+
extensionConfiguration = {
51+
incrementalTypechecking = {
52+
enabled = true
53+
},
54+
},
55+
},
56+
}
57+
```
58+
4159
For more details, see [server configuration](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#rescriptls)
4260

4361
## vim-coc users
4462

63+
Coc users can use LSP using `--stdio` or `--node-ipc` channel.
64+
4565
```json
4666
"languageserver": {
4767
"rescript": {
@@ -53,3 +73,15 @@ For more details, see [server configuration](https://github.com/neovim/nvim-lspc
5373
}
5474
}
5575
```
76+
77+
## ReScript grammar Tree-sitter
78+
79+
The Tree-sitter parser is now part of the `rescript-lang` organization, https://github.com/rescript-lang/tree-sitter-rescript.
80+
81+
It's been a while since Victor moved the repository. We still have to add support for the syntax changes introduced in v11. The parser has also been added to [`nvim-treesitter`](https://github.com/nvim-treesitter/nvim-treesitter), [PR](https://github.com/nvim-treesitter/nvim-treesitter/pull/6671).
82+
83+
The parser provides some important features in addition to highlight, indentation, language injection, folds and locals (used to extract keyword definitions, scopes, references, etc.).
84+
85+
You can install the parser with `TSInstall rescript`, more details [here](https://github.com/nvim-treesitter/nvim-treesitter?tab=readme-ov-file#modules)
86+
87+
The [nvim-treesitter-rescript](https://github.com/rescript-lang/nvim-treesitter-rescript) plugin is no longer needed and will be archived.

0 commit comments

Comments
 (0)