feat(locals)!: refactor locals.lua into standalone

Co-authored-by: TheLeoP <eugenio2305@hotmail.com>
This commit is contained in:
Christian Clason 2023-05-20 17:29:03 +02:00
parent 692b051b09
commit 5817ff01b5
6 changed files with 419 additions and 529 deletions

View file

@ -119,6 +119,10 @@ vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
Injections are used for multi-language documents, see `:h treesitter-language-injections`. No setup is needed.
## Locals
These queries can be used to look up definitions and references to identifiers in a given scope. They are used, e.g., by the `nvim-treesitter-refactor` plugin.
# Advanced setup
## Adding parsers