Skip to content

Is there a fast way to send function defintions? #264

Answered by jolars
SimonCW asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, via treesitter textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects

So if you have mapped, for instance, gs as send motion in iron and af for @function.outer for treesitter, you could just do gsaf.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hkupty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants