diff --git a/lua/treesj/langs/python.lua b/lua/treesj/langs/python.lua index b2de4eb..1c46663 100644 --- a/lua/treesj/langs/python.lua +++ b/lua/treesj/langs/python.lua @@ -83,7 +83,9 @@ return { }, }), argument_list = lang_utils.set_preset_for_args(), - parameters = lang_utils.set_preset_for_args(), + parameters = lang_utils.set_preset_for_args({ + split = { last_separator = true }, + }), parenthesized_expression = lang_utils.set_preset_for_args({}), list_comprehension = lang_utils.set_preset_for_args(), set_comprehension = lang_utils.set_preset_for_args(), diff --git a/tests/sample/index.py b/tests/sample/index.py index 7c9553a..18a7171 100644 --- a/tests/sample/index.py +++ b/tests/sample/index.py @@ -54,7 +54,7 @@ def adder(y): # RESULT OF SPLIT (node "parameters" and "function_definition", preset default) def create_adder( x, - b + b, ): def adder(y): return x + y