Wansmer / sibling-swap.nvim

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

Ability to dot `.` repeat a swap #15

Closed niveK77pur closed 4 months ago

niveK77pur commented 4 months ago

First off, thanks a lot for this really neat plugin! I have been a long time vim-exchange user, and this tree-sitter based approach will definitely be a super convenient addition!

However, I am missing the ability to repeat a swap with a .. For example, instead of hitting <C-,> 3 times in a row, I would hit it once, and then . twice.

In the case of the default mapping, such a dot repeat is probably not very useful, but I prefer to create mappings that do not interfere too much with basic shortcuts such as <C-,> and <C-.> (which, for me, are already taken partly by other vim config, and party by my terminal). The dot repeat would allow me to conveniently keep swapping without the overhead of a longer mapping!