Skip to content

Commit 40508bc

Browse files
committed
Add queries for NeoVim indents
1 parent ae9db4b commit 40508bc

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

queries/scala/indents.scm

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
; These indent queries adhere to nvim-tree-sytter syntax.
2+
; See `nvim-tree-sitter-indentation-mod` vim help page.
3+
4+
[
5+
(template_body)
6+
(block)
7+
(parameters)
8+
(arguments)
9+
(match_expression)
10+
(splice_expression)
11+
(import_declaration)
12+
(function_definition)
13+
(ERROR ":")
14+
(ERROR "=")
15+
("match")
16+
(":")
17+
("=")
18+
] @indent.begin
19+
20+
(arguments ")" @indent.end)
21+
22+
"}" @indent.end
23+
24+
"end" @indent.end
25+
26+
[
27+
")"
28+
"]"
29+
"}"
30+
] @indent.branch

0 commit comments

Comments
 (0)