Skip to content

Commit

Permalink
Add queries for NeoVim indents
Browse files Browse the repository at this point in the history
  • Loading branch information
susliko committed Aug 18, 2024
1 parent ae9db4b commit 40508bc
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 40508bc

Please sign in to comment.