mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
docs(readme): make custom parser example more explicit about options
This commit is contained in:
parent
687584df55
commit
2f489ad3c6
1 changed files with 5 additions and 1 deletions
|
|
@ -344,7 +344,11 @@ local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
|
||||||
parser_config.zimbu = {
|
parser_config.zimbu = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "~/projects/tree-sitter-zimbu", -- local path or git repo
|
url = "~/projects/tree-sitter-zimbu", -- local path or git repo
|
||||||
files = {"src/parser.c"}
|
files = {"src/parser.c"},
|
||||||
|
-- optional entries:
|
||||||
|
branch = "main", -- default branch in case of git repo if different from master
|
||||||
|
generate_requires_npm = false, -- if stand-alone parser without npm dependencies
|
||||||
|
requires_generate_from_grammar = false, -- if folder contains pre-generated src/parser.c
|
||||||
},
|
},
|
||||||
filetype = "zu", -- if filetype does not agrees with parser name
|
filetype = "zu", -- if filetype does not agrees with parser name
|
||||||
used_by = {"bar", "baz"} -- additional filetypes that use this parser
|
used_by = {"bar", "baz"} -- additional filetypes that use this parser
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue