aboutsummaryrefslogtreecommitdiffstats
path: root/lua
Commit message (Collapse)AuthorAgeFilesLines
...
* | fix(matches): better storage of nodesThomas Vigouroux2020-04-191-1/+1
| |
* | feat: add locals to setup procedureThomas Vigouroux2020-04-192-5/+19
| |
* | feat: first version of localsThomas Vigouroux2020-04-191-0/+82
|/ | | | | | | Locals will be the main interface to treesitter, through some functions: get_definitions(bufnr) : returns all the definitions in bufnr get_scopes(bufnr): returns all definitions in bufnr get_references(bufnr): returns all references in bufnr
* add parser installerkiyan422020-04-192-0/+79
|
* feat: add parsers module and better match iterThomas Vigouroux2020-04-194-19/+100
| | | | | | | | | | | | | | | The `parsers` module manages parsers for us, for now only in a really basic way. iter_prepared_mathes iters on an enhanced versions of the matches, where captures are directly accessible via their names to allow things like : ((itentifier) @def.first (identifier) @def.last) To be handled like this in lua: match.def.first match.def.last Also adds a `set!` predicate to allow setting data within the prepared match (see queries/lua/locals.scm) for examples.
* feat: add empty setup functionThomas Vigouroux2020-04-181-0/+10
| | | | | Will be used later to setup everything so that a language works properly in each situation.
* feat: add some utils to read queriesThomas Vigouroux2020-04-181-0/+19