diff --git a/queries/scala/indents.scm b/queries/scala/indents.scm new file mode 100644 index 0000000..0345a47 --- /dev/null +++ b/queries/scala/indents.scm @@ -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