-
Hey, For a function def fn1(a, b):
```This is doing something````
return 3*a+b When finished typing the return statement, I'd like to send the function to ipython. Is there a more ergonomic way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, via treesitter textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects So if you have mapped, for instance, |
Beta Was this translation helpful? Give feedback.
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 andaf
for@function.outer
for treesitter, you could just dogsaf
.