Skip to content

Commit

Permalink
Merge pull request #82 from zDonik1/indent-rules
Browse files Browse the repository at this point in the history
Add treesitter indent rules
  • Loading branch information
fdncred authored Mar 9, 2024
2 parents 7dd29f9 + b96b3a5 commit c5b7816
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions queries/nu/indents.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
(pipeline)
(pipe_element)
(expr_parenthesized)
(val_record)
(val_list)
(val_closure)
(val_table)
(block)
] @indent.begin

[
"}"
"]"
")"
] @indent.end

[
"}"
"]"
")"
] @indent.branch

(comment) @indent.auto

0 comments on commit c5b7816

Please sign in to comment.