summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-04-19fix: add plugin fileThomas Vigouroux
2020-04-19feat: first version of localsThomas Vigouroux
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
2020-04-19Merge pull request #2 from kyazdani42/install-parserThomas Vigouroux
feat: add parser installer
2020-04-19add parser installerkiyan42
2020-04-19Merge pull request #1 from vigoux/masterThomas Vigouroux
Initialize the repo
2020-04-19feat: add parsers module and better match iterThomas Vigouroux
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.
2020-04-18feat: add empty setup functionThomas Vigouroux
Will be used later to setup everything so that a language works properly in each situation.
2020-04-18feat: add an example locals queryThomas Vigouroux
This will be the guide for the implementation of locals extraction, which is treesitters name of definition/scope.
2020-04-18feat: add some utils to read queriesThomas Vigouroux
2020-04-18style: add editorconfigThomas Vigouroux
2020-04-18Create README.mdThomas Vigouroux