aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2022-01-15 20:21:01 +0100
committerStephan Seitz <stephan.seitz@fau.de>2022-01-16 15:40:27 +0100
commit2f489ad3c6a142b0c83a5b59068fe25a66879d06 (patch)
tree375418d5d1070e9e4481c1c3d4d6b8128f7004d4
parentUpdate README (diff)
downloadnvim-treesitter-2f489ad3c6a142b0c83a5b59068fe25a66879d06.tar
nvim-treesitter-2f489ad3c6a142b0c83a5b59068fe25a66879d06.tar.gz
nvim-treesitter-2f489ad3c6a142b0c83a5b59068fe25a66879d06.tar.bz2
nvim-treesitter-2f489ad3c6a142b0c83a5b59068fe25a66879d06.tar.lz
nvim-treesitter-2f489ad3c6a142b0c83a5b59068fe25a66879d06.tar.xz
nvim-treesitter-2f489ad3c6a142b0c83a5b59068fe25a66879d06.tar.zst
nvim-treesitter-2f489ad3c6a142b0c83a5b59068fe25a66879d06.zip
docs(readme): make custom parser example more explicit about options
-rw-r--r--README.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index 3a03fc448..41e80c387 100644
--- a/README.md
+++ b/README.md
@@ -344,7 +344,11 @@ local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
parser_config.zimbu = {
install_info = {
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
used_by = {"bar", "baz"} -- additional filetypes that use this parser