Skip to content

Commit

Permalink
Merge pull request #378 from susliko/nvim-indents
Browse files Browse the repository at this point in the history
Nvim indents
  • Loading branch information
eed3si9n authored Aug 18, 2024
2 parents ae9db4b + 40508bc commit dd7fe4d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions queries/scala/indents.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
; These indent queries adhere to nvim-tree-sytter syntax.
; See `nvim-tree-sitter-indentation-mod` vim help page.

[
(template_body)
(block)
(parameters)
(arguments)
(match_expression)
(splice_expression)
(import_declaration)
(function_definition)
(ERROR ":")
(ERROR "=")
("match")
(":")
("=")
] @indent.begin

(arguments ")" @indent.end)

"}" @indent.end

"end" @indent.end

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

0 comments on commit dd7fe4d

Please sign in to comment.