Jump to, select and operate on AST nodes via the Leap interface with Tree-sitter.
- Neovim >= 0.7.0
- leap.nvim
- nvim-treesitter (This dependency is only temporary; it will not be necessary in the future.)
Use your preferred plugin manager - no extra steps needed.
Just define one mapping, and you're good to go:
vim.keymap.set({'n', 'x', 'o'}, '<some-key>', function() require'leap-ast'.leap() end, {})