Crates.io | tree-sitter-noir |
lib.rs | tree-sitter-noir |
version | 0.0.1 |
source | src |
created_at | 2023-08-27 20:43:26.253786 |
updated_at | 2023-08-27 20:43:26.253786 |
description | noir grammar for the tree-sitter parsing library |
homepage | |
repository | https://github.com/hhamud/tree-sitter-noir |
max_upload_size | |
id | 956380 |
size | 989,358 |
Noir grammar and parser for tree-sitter
To use with Emacs; use the following package here.
Make sure that you have the latest version of Neovim and have also installed the neovim tree-sitter plugin.
Add the following lines to your init.vim
file:
lua <<EOF
local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
parser_config.noir = {
install_info = {
url = "https://github.com/hhamud/tree-sitter-noir", -- the url for this tree-sitter grammar
files = {"src/parser.c", "src/scanner.cc"},
},
filetype = "noir", -- if filetype does not agrees with parser name you can define this field
}
require'nvim-treesitter.configs'.setup {
ensure_installed = "noir", -- The custom parser
highlight = {
enable = true, -- false will disable the whole extension
},
}
EOF
To install the grammar from NPM
npm i tree-sitter-noir
Contributions to tree-sitter-noir are welcome. If you find any issues or have suggestions for improvement, please create a new issue or submit a pull request on the GitHub repository.