Skip to content

Commit dd7fe4d

Browse files
authored
Merge pull request #378 from susliko/nvim-indents
Nvim indents
2 parents ae9db4b + 40508bc commit dd7fe4d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

queries/scala/indents.scm

+30
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)