diff options
| author | Phelipe Teles <phelipe_teles@hotmail.com> | 2022-06-05 20:11:18 -0300 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-06-14 22:37:52 +0200 |
| commit | 5e8ec943f8b641e881fc481da076092b5b4d666d (patch) | |
| tree | 71d56d42183ac2f2e5c1f4cb92a81977df1d0098 /queries/yaml | |
| parent | fix: keep cls variable highlighting consistent in class methods (diff) | |
| download | nvim-treesitter-5e8ec943f8b641e881fc481da076092b5b4d666d.tar nvim-treesitter-5e8ec943f8b641e881fc481da076092b5b4d666d.tar.gz nvim-treesitter-5e8ec943f8b641e881fc481da076092b5b4d666d.tar.bz2 nvim-treesitter-5e8ec943f8b641e881fc481da076092b5b4d666d.tar.lz nvim-treesitter-5e8ec943f8b641e881fc481da076092b5b4d666d.tar.xz nvim-treesitter-5e8ec943f8b641e881fc481da076092b5b4d666d.tar.zst nvim-treesitter-5e8ec943f8b641e881fc481da076092b5b4d666d.zip | |
fix(indents/yaml): indent sequence/list items
This solves the second issue reported at #1377, in which the cursor
would not be aligned with the line "key2: value2" when entering a new
line below it.
```yaml
- key1: value1
key2: value2
```
Diffstat (limited to 'queries/yaml')
| -rw-r--r-- | queries/yaml/indents.scm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/queries/yaml/indents.scm b/queries/yaml/indents.scm index 2ed382e0d..23a173361 100644 --- a/queries/yaml/indents.scm +++ b/queries/yaml/indents.scm @@ -1,3 +1,4 @@ [ (block_mapping_pair) + (block_sequence_item) ] @indent |
