Treesitter indent

also fixes the memoize_by_buf_tick function
This commit is contained in:
kiyan42 2020-10-13 23:55:37 +02:00 committed by Kiyan Yazdani
parent 36b5f6f075
commit 1735528db5
5 changed files with 80 additions and 56 deletions

23
queries/lua/indents.scm Normal file
View file

@ -0,0 +1,23 @@
[
(function_definition)
(local_function)
(function)
(if_statement)
(for_statement)
(for_in_statement)
(repeat_statement)
(while_statement)
(table)
(arguments)
] @indent
[
"end"
"{"
"}"
"("
")"
"then"
(else)
(elseif)
] @branch