nvim-treesitter/queries/query/indents.scm
Riley Bruins 455f6586ba
feat(query): indents that reflect the formatter (#6154)
* feat(query): indents that reflect the formatter

Indentation queries that reflect the query formatter. Only applicable if `lispoptions=expr:1`
2024-02-21 18:47:09 +09:00

20 lines
330 B
Scheme

[
(list)
(named_node)
(grouping)
(predicate) ; WIP to newline wrap any-of?
"["
] @indent.begin
; ERROR node indents
(ERROR
"(") @indent.begin
"]" @indent.branch @indent.end
")" @indent.end
; Captures always mark the end of a node
; Because of that, mark it as indent.end
(capture
name: (identifier) @indent.end)