mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 04:10:06 -04:00
python(folds): fold whole functions not only body
This commit is contained in:
parent
910743c77a
commit
c9ebd16c28
1 changed files with 10 additions and 9 deletions
|
|
@ -1,13 +1,14 @@
|
||||||
(function_definition (block) @fold)
|
|
||||||
(class_definition (block) @fold)
|
|
||||||
|
|
||||||
(while_statement (block) @fold)
|
|
||||||
(for_statement (block) @fold)
|
|
||||||
(if_statement (block) @fold)
|
|
||||||
(with_statement (block) @fold)
|
|
||||||
(try_statement (block) @fold)
|
|
||||||
|
|
||||||
[
|
[
|
||||||
|
(function_definition)
|
||||||
|
(class_definition)
|
||||||
|
|
||||||
|
(while_statement)
|
||||||
|
(for_statement)
|
||||||
|
(if_statement)
|
||||||
|
(with_statement)
|
||||||
|
(try_statement)
|
||||||
|
(match_statement)
|
||||||
|
|
||||||
(import_from_statement)
|
(import_from_statement)
|
||||||
(parameters)
|
(parameters)
|
||||||
(argument_list)
|
(argument_list)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue