3 ms·
I utilize structural editing in nvim using some plugins: - treesitter-textobjects with powerful select and expand selection motions: https://github.com/nvim-tr
by ivanjermakov 2y ago
I utilize structural editing in nvim using some plugins:
- treesitter-textobjects with powerful select and expand selection motions: https://github.com/nvim-treesitter/nvim-treesitter-textobjects https://github.com/nvim-treesitter/nvim-treesitter-textobjec...
- sibling-swap fun name but does exactly that: https://github.com/Wansmer/sibling-swap.nvim https://github.com/Wansmer/sibling-swap.nvim
Both use Tree-sitter for AST provision and you can use it with any popular language or even write your own parser: https://tree-sitter.github.io/tree-sitter/ https://tree-sitter.github.io/tree-sitter/