Wansmer / treesj

Neovim plugin for splitting/joining blocks of code
MIT License
1.04k stars 29 forks source link

Add node for Python function definitions #157

Closed vandalt closed 3 months ago

vandalt commented 3 months ago

Hi!

This adds a node for function definitions in Python. I saw that it was already implemented for R so I used the same target node ("parameters"). I did a few tests locally and it worked well.

I also added a test spec for this new node. I did not add any new code to index.py, as I figured the same code as for parameters could be re-used. Let me know if you would rather have a separate function for this test.

Thanks!

Wansmer commented 3 months ago

Thanks for the PR!