mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-03 19:07:44 +03:00
nix: add indent TS query (#12829)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
This commit is contained in:
parent
a6f94e04e6
commit
a03becf021
2 changed files with 23 additions and 1 deletions
22
runtime/queries/nix/indents.scm
Normal file
22
runtime/queries/nix/indents.scm
Normal file
|
@ -0,0 +1,22 @@
|
|||
[
|
||||
(indented_string_expression)
|
||||
(string_expression)
|
||||
|
||||
; these are all direct parents of (binding_set)
|
||||
(attrset_expression)
|
||||
(let_attrset_expression)
|
||||
(rec_attrset_expression)
|
||||
(let_expression)
|
||||
|
||||
(list_expression)
|
||||
(parenthesized_expression)
|
||||
] @indent
|
||||
|
||||
|
||||
(if_expression [ "if" "then" "else" ] @align)
|
||||
|
||||
[
|
||||
"}"
|
||||
"]"
|
||||
")"
|
||||
] @outdent
|
Loading…
Add table
Add a link
Reference in a new issue