Open phogh opened 11 months ago
Hi, sorry for taking so long to reply here.
Thanks for your interest!
A similar category of request came in today (#53) and I want to share the comment I made there with this issue: https://github.com/julienvincent/nvim-paredit/issues/53#issuecomment-1967983091
Essentially I think this kind of motion can be solved using the existing and more language agnostic nvim-treesitter-textobjects plugin found here: https://github.com/nvim-treesitter/nvim-treesitter-textobjects?tab=readme-ov-file#text-objects-move.
Let me know what you think.
I miss the
[[
and]]
features of vim-sexp to jump to the toplevel form start and end. I initially implemented a solution by iterating the api functionmove_to_parent_form_{start,end}
used in(
. It worked fine but it was neater to create new api functionsmove_to_root_{start,end}
. The code is based onmove_to_parent_form
(Apologies I don't know enough treesitter and nvim lua to know if there's a better approach!):