Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Conversation

Maneren
Copy link

@Maneren Maneren commented Jan 19, 2025

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.

@Wansmer
Copy link
Owner

Wansmer commented Jan 19, 2025

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants