diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2021-02-06 18:43:49 -0500 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2021-02-07 15:37:21 +0100 |
| commit | bfcf03853f2a32bcd624c1d6cd7cfaafca59e74e (patch) | |
| tree | 68fd3c4de8eb6af8b422b2ed3f87cddf53bec711 | |
| parent | 51d70c9f0c4614887199343ffc54be057a79dd2e (diff) | |
Yaml: fix folds
Fix https://github.com/nvim-treesitter/nvim-treesitter/issues/887
(block_node) includes more nodes to fold, test with:
```yaml
days:
Monday:
- test: example
Tuesday:
- test: example
Wednesday:
- test: example
- test: example
Thursday:
- test: example
Friday:
- test: example
- foo: |
One
Two
Three
```
| -rw-r--r-- | queries/yaml/folds.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/queries/yaml/folds.scm b/queries/yaml/folds.scm index 9ee7e929..f82378e6 100644 --- a/queries/yaml/folds.scm +++ b/queries/yaml/folds.scm @@ -1,3 +1,3 @@ [ - (block_mapping_pair) + (block_node) ] @fold |
