aboutsummaryrefslogtreecommitdiffstats
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-08-28 17:41:27 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2020-09-01 21:51:17 +0200
commit03621e758c640b2ec20d32221d2e28ef0fd359e6 (patch)
tree7308695610e9039cac43d3d87a547fa473d2691f /CONTRIBUTING.md
parentfold(c): ignore compound statements (diff)
downloadnvim-treesitter-03621e758c640b2ec20d32221d2e28ef0fd359e6.tar
nvim-treesitter-03621e758c640b2ec20d32221d2e28ef0fd359e6.tar.gz
nvim-treesitter-03621e758c640b2ec20d32221d2e28ef0fd359e6.tar.bz2
nvim-treesitter-03621e758c640b2ec20d32221d2e28ef0fd359e6.tar.lz
nvim-treesitter-03621e758c640b2ec20d32221d2e28ef0fd359e6.tar.xz
nvim-treesitter-03621e758c640b2ec20d32221d2e28ef0fd359e6.tar.zst
nvim-treesitter-03621e758c640b2ec20d32221d2e28ef0fd359e6.zip
docs(fold): document and comment
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r--CONTRIBUTING.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 5db4f0e87..902e45321 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -206,3 +206,9 @@ Possible scope values are:
- `global`: The definition is valid in the root scope
- `local`: The definition is valid in the containing scope. This is the default behavior
+### Folds
+
+You can define folds for a given language by adding a `fold.scm` query.
+The `@fold` capture is used to fold a node.
+If the `fold.scm` query is not present, this will fallback to the `@scope` captures in the `locals`
+query.