File tree 1 file changed +4
-26
lines changed
1 file changed +4
-26
lines changed Original file line number Diff line number Diff line change 1
1
# tree-sitter-rbs
2
2
3
+ [ ![ Build/test] ( https://github.com/joker1007/tree-sitter-rbs/actions/workflows/ci.yml/badge.svg )] ( https://github.com/joker1007/tree-sitter-rbs/actions/workflows/ci.yml )
4
+
3
5
[ rbs] ( https://github.com/ruby/rbs ) grammar for [ tree-sitter] ( https://github.com/tree-sitter/tree-sitter ) .
4
6
5
7
syntax reference is https://github.com/ruby/rbs/blob/master/docs/syntax.md
6
8
7
9
## Use this in Neovim
8
10
9
- 1 . add following code to install parser manually.
10
-
11
- ``` lua
12
- local parser_config = require (" nvim-treesitter.parsers" ).get_parser_configs ()
13
- parser_config .rbs = {
14
- install_info = {
15
- url = " https://github.com/joker1007/tree-sitter-rbs" ,
16
- files = { " src/parser.c" },
17
- branch = " main" ,
18
- },
19
- filetype = " rbs" ,
20
- }
21
- ```
22
-
23
- 2 . run ` :TSInstall rbs `
24
-
25
- 3 . install this repository as a neovim plugin
26
-
27
- ``` lua
28
- -- lazy.nvim
29
- require (" lazy" ).setup ({
30
- " joker1007/tree-sitter-rbs"
31
- })
11
+ this parser is supported in nvim-treesitter. (https://github.com/nvim-treesitter/nvim-treesitter/pull/5745 )
32
12
33
- -- packer.nvim
34
- use { " joker1007/tree-sitter-rbs" }
35
- ```
13
+ Please run ` :TSInstall rbs `
You can’t perform that action at this time.
0 commit comments