telescope-ast-grep.nvim
provides grep functionality enhancements for telescope.nvim, featuring two main components:
ast_grep
: AST based grepdumb_jump
: grep by regex emacs-dumb-jump
Currently, the extension supports a limited set of languages.
- For ast_grep, check supported languages here
- dumb_jump, Please refer to the source code for current language support. As of now, I've integrated support for python, go, lua, c/cpp, and js/ts
- install ast-grep
- jq
- ripgrep
- shell (The plugin can run under windows with bash/mingw)
{
'ray-x/telescope-ast-grep.nvim',
dependencies = {
{'nvim-lua/plenary.nvim'},
{'nvim-telescope/telescope.nvim'},
},
}
:Telescope AST_grep
:Telescope dumb_jump