| Crates.io | tree-sitter-rush |
| lib.rs | tree-sitter-rush |
| version | 0.2.0 |
| created_at | 2023-07-06 11:34:37.162445+00 |
| updated_at | 2025-02-28 13:53:08.877908+00 |
| description | rush grammar for tree-sitter |
| homepage | |
| repository | https://github.com/rush-rs/tree-sitter-rush |
| max_upload_size | |
| id | 909761 |
| size | 415,164 |
rush grammar for tree-sitter
The nvim-treesitter plugin
does not include this parser. To use it you must instead manually add it to your
tree-sitter config and then install it with :TSInstall rush or by adding it to
your ensure_installed list:
require('nvim-treesitter.parsers').get_parser_configs().rush = {
install_info = {
url = 'https://github.com/rush-rs/tree-sitter-rush.git',
files = { 'src/parser.c' },
branch = 'main',
},
}
You will likely also have to add the rush file type:
vim.filetype.add { extension = { rush = 'rush' } }
If you want to use this parser for highlighting and indentation, you will also have to add this repository as a plugin, for example for packer.nvim add this:
use { 'rush-rs/tree-sitter-rush' }