Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 863 Bytes

CONTRIBUTING.md

File metadata and controls

22 lines (16 loc) · 863 Bytes

Contribution guide

Build and develop

  • 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.

Neovim setup

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" },
  }
}