7 releases
0.1.6 | Aug 25, 2023 |
---|---|
0.1.5 | Aug 24, 2023 |
0.1.1 | Jun 29, 2023 |
#248 in Text editors
75 downloads per month
355KB
15K
SLoC
tree-sitter-icelang
icelang grammar for tree-sitter
Build
# 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
Neovim
To use it in Neovim, you have install the parser manually by adding the following code in your nvim-treesitter configuration, and run :TSInstall icelang
.
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",
}
To get syntax highlightings, folds and indents, you can use the repository as plugin by installing it with your package manager.
Lazy:
return { "luckasRanarison/tree-sitter-icelang" }
Packer:
use { "luckasRanarison/tree-sitter-icelang" }
Dependencies
~2.7–4MB
~75K SLoC