feat!: refactor locals.lua into standalone

This commit is contained in:
Christian Clason 2023-05-20 17:29:03 +02:00
parent 2c8f2f2fad
commit fdafc019bb
6 changed files with 294 additions and 447 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