mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 14:00:00 -04:00
fix(fold): revamp fold
fix(fold): typo fix(fold): remove debug and add queries fix(fold): fallback to local scopes for folds
This commit is contained in:
parent
92c18c8efa
commit
545e5c479a
3 changed files with 64 additions and 15 deletions
9
queries/lua/fold.scm
Normal file
9
queries/lua/fold.scm
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[
|
||||
(for_in_statement)
|
||||
(for_statement)
|
||||
(if_statement)
|
||||
(function_definition)
|
||||
(function)
|
||||
(while_statement)
|
||||
(table)
|
||||
] @fold
|
||||
Loading…
Add table
Add a link
Reference in a new issue