python(folds): fold whole functions not only body

This commit is contained in:
Stephan Seitz 2021-06-29 21:34:52 +02:00
parent 910743c77a
commit c9ebd16c28

View file

@ -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)
(parameters)
(argument_list)