mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 12:30:01 -04:00
Treesitter indent
also fixes the memoize_by_buf_tick function
This commit is contained in:
parent
36b5f6f075
commit
1735528db5
5 changed files with 80 additions and 56 deletions
23
queries/lua/indents.scm
Normal file
23
queries/lua/indents.scm
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue