/leap-ast.nvim

Jump to, select and operate on AST nodes via the Leap interface with Treesitter (WIP)

Primary LanguageLuaThe UnlicenseUnlicense

leap-ast.nvim

Jump to, select and operate on AST nodes via the Leap interface with Tree-sitter.

Requirements

  • Neovim >= 0.7.0
  • leap.nvim
  • nvim-treesitter (This dependency is only temporary; it will not be necessary in the future.)

Installation

Use your preferred plugin manager - no extra steps needed.

Usage

Just define one mapping, and you're good to go:

vim.keymap.set({'n', 'x', 'o'}, '<some-key>', function() require'leap-ast'.leap() end, {})