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: README.md
+4-7Lines changed: 4 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,6 @@
2
2
3
3
This repository contains a parser definition of the [ReScript](https://rescript-lang.org/) language for the [Tree-sitter](https://tree-sitter.github.io/tree-sitter/) parser generator tool.
4
4
5
-
Athough Tree-sitter has many applications, the main intent of this parser is powering the [`nvim-treesitter-rescript`](https://github.com/nkrkv/nvim-tree-sitter-rescript/) NeoVim plugin which may be used to improve development experience in the NeoVim + ReScript combo.
6
-
7
5
Queries for text objects are also included which help you to navigate, select, and modify ReScript code syntactically. For NeoVim, the [`nvim-treesitter-textobjects`](https://github.com/nvim-treesitter/nvim-treesitter-textobjects) plugin is required to use Tree-sitter text objects.
8
6
9
7
## Installation
@@ -16,7 +14,7 @@ If you want ReScript Tree-sitter in NeoVim, you will first need to register a ne
This will make `TSInstall rescript` globally available. For more persistent approach you should add this parser to your Lua configuration.
30
28
31
-
Default configuration detects `.res` and `.resi` files. You can confirm that it's correctly installed by using [`nvim-treesitter/playground`](https://github.com/nvim-treesitter/playground) and invoking `TSPlaygroundToggle` when you are in the ReScript file.
29
+
Default configuration detects `.res` and `.resi` files. You can confirm that it's correctly installed by invoking `:InspectTree` when you are in the ReScript file.
32
30
33
31
- Notice that by default you will not see the highlighting! To enable highlighting, you will need to install this package either as a dependency or directly.
34
32
@@ -38,7 +36,7 @@ If you are using `lazy.nvim` example configuration will look like so:
38
36
{
39
37
"nvim-treesitter/nvim-treesitter",
40
38
dependencies= {
41
-
"nkrkv/tree-sitter-rescript"
39
+
"rescript-lang/tree-sitter-rescript"
42
40
},
43
41
opts=function(_, opts) -- this is needed so you won't override your default nvim-treesitter configuration
44
42
vim.list_extend(opts.ensure_installed, {
@@ -48,7 +46,7 @@ If you are using `lazy.nvim` example configuration will look like so:
0 commit comments