tree-sitter-groovy
follows the usual structure of a tree-sitter project, so to get started you should read the Creating Parsers section of the tree-sitter docs.- Make sure to update the tests and neovim queries to support new changes.
The groovy neovim queries are located under the queries
directory.
To use your locally built groovy parser in neovim, you can add the following snippet to your configuration before calling require('nvim-treesitter.configs').setup
.
require("nvim-treesitter.parsers").get_parser_configs().groovy = {
install_info = {
url = "~/path/to/your/fork/of/tree-sitter-groovy/",
files = { "src/parser.c" },
}
}