Wansmer / sibling-swap.nvim

Neovim plugin for swaps closest siblings with Tree-Sitter
MIT License
155 stars 1 forks source link

FR: Option to highlight the node that moved #3

Closed chrisgrieser closed 1 year ago

chrisgrieser commented 1 year ago

Thanks for this plugin, it's actually much better than other node-swapping plugins I tried.

I think an option to highlight the node that has just been moved could be useful. Reason being that sometimes, a different node than I expect gets moved, and then I am always a bit confused which one exactly moved.

Wansmer commented 1 year ago

Thanks for the feedback! I'll consider adding this feature.

Please clarify at what moments the nodes are not moving as expected? The cursor must always remain on the node that was moved, and in the same place. Is this not working for you?

chrisgrieser commented 1 year ago

Oh no, everything working fine with the plugin! It's about moves that I didn't expect but were totally correct.

It's stuff like me overlooking a plus sign, or simply me pressing the keymap for swapping left instead of the one for swapping right.

Wansmer commented 1 year ago

Done #6

chrisgrieser commented 1 year ago

thanks you! :)