| Crates.io | tree-sitter-icleang |
| lib.rs | tree-sitter-icleang |
| version | 0.1.0 |
| created_at | 2023-06-28 14:01:38.401528+00 |
| updated_at | 2023-06-28 14:01:38.401528+00 |
| description | icleang grammar for the tree-sitter parsing library |
| homepage | |
| repository | https://github.com/tree-sitter/tree-sitter-icleang |
| max_upload_size | |
| id | 902138 |
| size | 375,152 |
icelang grammar for tree-sitter
# install tree-sitter-cli with cargo or npm
cargo install tree-sitter-cli
# or
npm i -g tree-sitter-cli
# generate parser
tree-sitter generate
To use it with nvim-treesitter put the following code in your nvim-treesitter configuration:
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config.icelang = {
install_info = {
url = "https://github.com/luckasRanarison/tree-sitter-icelang",
files = { "src/parser.c" },
branch = "master",
},
filetype = "icelang",
}
Then run :TSInstall icelang, nvim-treesitter doesn't actually support custom queries so you have to copy the queries in queries/neovim/ manually in your runtime path: queries/icelang/* in order to get the actual features like highlighting.