ziontee113 / syntax-tree-surfer

A plugin for Neovim that helps you surf through your document and move elements around using the nvim-treesitter API.
MIT License
472 stars 10 forks source link

feat: expose `hold_or_swap` and `clear_held_node` #17

Closed llllvvuu closed 1 year ago

llllvvuu commented 1 year ago

This makes it easier to config on top of. For example, I am using syntax-tree-surfer with hydra.nvim and I want to stay in visual while holding and swapping, as well as clear the held node when exit the hydra.

ziontee113 commented 1 year ago

Hi @llllvvuu , thank you very much for submitting the PR. The code looks good to me. It would be awesome if you could add relevant notes to the README file for other users to know and understand the intentions, functionalities and impacts of the new changes. Thank you very much :heart:

llllvvuu commented 1 year ago

Updated!

ziontee113 commented 1 year ago

Thank you very much :+1: