binary-swap.nvim icon indicating copy to clipboard operation
binary-swap.nvim copied to clipboard

Support for Python

Open Maneren opened this issue 11 months ago • 1 comments

Hi, Python's tree-sitter grammar directly uses nodes binary_operator (+, -, *, etc.), boolean_operator (and, or), and comparison_operator (==, <, etc.) rather than wrapped in a binary_expression node, so I modified the code to check for those types as well.

Id don't know if this is the correct way to implement this but I tried it out on few samples from my python project and it seems to work fine in all of them. Feel free to correct me tho or to let me know if I‌ should document it or something.

Maneren avatar Jan 19 '25 14:01 Maneren

Hi! Thanks for the PR, but this plugin is no longer supported (sorry, I forgot to archive it). You can continue to use your fork or use Wansmer/sibling-swap.nvim, the same functionality is added there.

Wansmer avatar Jan 19 '25 15:01 Wansmer