mirror of https://github.com/helix-editor/helix
nix: add indent TS query (#12829)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>pull/12753/head
parent
a6f94e04e6
commit
a03becf021
|
@ -148,7 +148,7 @@
|
||||||
| nginx | ✓ | | | |
|
| nginx | ✓ | | | |
|
||||||
| nickel | ✓ | | ✓ | `nls` |
|
| nickel | ✓ | | ✓ | `nls` |
|
||||||
| nim | ✓ | ✓ | ✓ | `nimlangserver` |
|
| nim | ✓ | ✓ | ✓ | `nimlangserver` |
|
||||||
| nix | ✓ | ✓ | | `nil`, `nixd` |
|
| nix | ✓ | ✓ | ✓ | `nil`, `nixd` |
|
||||||
| nu | ✓ | | | `nu` |
|
| nu | ✓ | | | `nu` |
|
||||||
| nunjucks | ✓ | | | |
|
| nunjucks | ✓ | | | |
|
||||||
| ocaml | ✓ | | ✓ | `ocamllsp` |
|
| ocaml | ✓ | | ✓ | `ocamllsp` |
|
||||||
|
|
|
@ -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…
Reference in New Issue