You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: draft-v3-release.md
+34-2
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ We only provide the Vim runtime files that provide the following features:
9
9
1. Indentation
10
10
2. Syntax Highlight
11
11
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)
13
13
14
14
## Breaking Changes
15
15
@@ -22,7 +22,11 @@ We only provide the Vim runtime files that provide the following features:
22
22
The `rescript-language-server` server is a dedicated package published on NPM. Users must do
23
23
installation and setup to get all the features.
24
24
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:
26
30
27
31
```sh
28
32
npm install -g @rescript/language-server
@@ -38,10 +42,26 @@ local lspconfig = require('lspconfig')
38
42
lspconfig.rescriptls.setup{}
39
43
```
40
44
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
+
41
59
For more details, see [server configuration](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#rescriptls)
42
60
43
61
## vim-coc users
44
62
63
+
Coc users can use LSP using `--stdio` or `--node-ipc` channel.
64
+
45
65
```json
46
66
"languageserver": {
47
67
"rescript": {
@@ -53,3 +73,15 @@ For more details, see [server configuration](https://github.com/neovim/nvim-lspc
53
73
}
54
74
}
55
75
```
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