mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(folds): add ts and js folds
This commit is contained in:
parent
feead20c04
commit
02735aae55
2 changed files with 20 additions and 0 deletions
15
queries/javascript/fold.scm
Normal file
15
queries/javascript/fold.scm
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[
|
||||
(for_in_statement)
|
||||
(for_statement)
|
||||
(while_statement)
|
||||
(arrow_function)
|
||||
(function)
|
||||
(function_declaration)
|
||||
(class_declaration)
|
||||
(method_definition)
|
||||
(do_statement)
|
||||
(with_statement)
|
||||
(switch_statement)
|
||||
(switch_case)
|
||||
(import_statement)
|
||||
] @fold
|
||||
5
queries/typescript/fold.scm
Normal file
5
queries/typescript/fold.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[
|
||||
(interface_declaration)
|
||||
(internal_module)
|
||||
(type_alias_declaration)
|
||||
] @fold
|
||||
Loading…
Add table
Add a link
Reference in a new issue