Thomas Vigouroux
ec60eadb7d
docs(README): update and add quickstart
2020-04-22 19:21:02 +02:00
Thomas Vigouroux
e2a25a3135
Merge pull request #17 from kyazdani42/add-configs-ft
...
feat/refacto: add configs.lua, setup install cmd
2020-04-22 09:14:18 +02:00
kiyan42
62ce7744db
feat/refacto: add configs.lua, setup install
...
- configs.lua holds the `repositories` data
- install health moved to health.lua
- plugins loads _root.setup() on startup
- install and list command are available through vim
> use them with `:TSInstall lang` and `:TSInstallInfo`
2020-04-21 23:40:23 +02:00
Thomas Vigouroux
37932fc3d3
Merge pull request #16 from kyazdani42/fix-compiling-parser
...
fix: parser install unpack > tbl_flatten
2020-04-21 21:33:10 +02:00
kiyan42
0a7f83830f
fix: parser install tbl_flatten > unpack
...
- fix parser install
- format install.lua
2020-04-21 21:05:44 +02:00
Thomas Vigouroux
fbf6efd5b1
Merge pull request #11 from kyazdani42/parser-list
...
feat: add parser list
2020-04-21 20:14:41 +02:00
Thomas Vigouroux
522030f148
Merge pull request #15 from kyazdani42/enable-typescript-install
...
feat: enable typescript and tsx install
2020-04-21 20:07:28 +02:00
kiyan42
b4ca1c4f78
feat: add typescript install
...
- add repo.location for typescript and compile at that location
- typescript and tsx must be installed separately as two different
parsers.
2020-04-21 19:28:23 +02:00
kiyan42
a7810728d2
refacto/feat: enable csharp install, fix clone
...
- clone only master at depth 1 to avoid long download from huge repos.
- use ft to specify folder name to clone so csharp can be cloned and
used properly.
2020-04-21 19:10:01 +02:00
Kiyan Yazdani
a3159916d1
Merge pull request #13 from kyazdani42/fix-install
...
fix: repositories from M.repositories since last merge.
2020-04-21 18:37:59 +02:00
kiyan42
7e0b69d981
fix: repositories from M.repositories since last merge.
2020-04-21 18:37:03 +02:00
Kiyan Yazdani
b72559f9c2
Merge pull request #12 from vigoux/checkhealth
...
feat: checkhealth
2020-04-21 18:26:07 +02:00
kiyan42
698453e50c
feat: add checkhealth
2020-04-21 13:38:16 +02:00
Thomas Vigouroux
8b01b9caee
Merge pull request #10 from vigoux/feature/node-utils
...
Node manipulation utilities
2020-04-20 23:37:31 +02:00
kiyan42
0de42dd7fb
feat: add parser list
2020-04-20 22:33:13 +02:00
Thomas Vigouroux
669b6ab8c3
Merge pull request #8 from kyazdani42/add-parsers
...
feat: add most parsers
2020-04-20 22:26:12 +02:00
Thomas Vigouroux
30b34fa505
feat: add node manipulation utils
2020-04-20 22:22:33 +02:00
kiyan42
65af371edd
feat: add most parsers
2020-04-20 22:01:52 +02:00
Thomas Vigouroux
3975ca91f6
Merge pull request #4 from kyazdani42/improve-installer
...
feat/refacto: improve installer
2020-04-20 21:31:07 +02:00
kiyan42
ec9daa1f8a
feat/refacto: improve installer
2020-04-20 20:57:11 +02:00
Thomas Vigouroux
05be31024a
Merge pull request #3 from vigoux/feature/locals
...
Add locals handling
2020-04-19 20:38:51 +02:00
Thomas Vigouroux
d25549917d
perf: don't compute locals on buffer updates
...
Instead we lazily evaluate them on request.
This allow two things :
* better performances
* being sure the locas are up to date
2020-04-19 20:16:03 +02:00
Thomas Vigouroux
d169c0614c
fix: prepare injections mechanism
2020-04-19 17:55:38 +02:00
Thomas Vigouroux
5783e7d248
style: avoid overindenting things
2020-04-19 17:31:00 +02:00
Thomas Vigouroux
51ca6a5069
fix(matches): better storage of nodes
2020-04-19 17:28:59 +02:00
Thomas Vigouroux
6cab5c2d75
feat: create NvimTreesitter augroup at startup
2020-04-19 17:28:59 +02:00
Thomas Vigouroux
b2b6e51a7c
feat: add locals to setup procedure
2020-04-19 17:28:59 +02:00
Thomas Vigouroux
0d5ef2f980
fix: add plugin file
2020-04-19 17:28:52 +02:00
Thomas Vigouroux
b706c4e8ed
feat: first version of locals
...
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-19 17:28:52 +02:00
Thomas Vigouroux
f784a0adda
Merge pull request #2 from kyazdani42/install-parser
...
feat: add parser installer
2020-04-19 15:18:19 +02:00
kiyan42
2967ca5203
add parser installer
2020-04-19 15:13:38 +02:00
Thomas Vigouroux
ac3c2ec2ec
Merge pull request #1 from vigoux/master
...
Initialize the repo
2020-04-19 09:50:39 +02:00
Thomas Vigouroux
2526baf4cc
feat: add parsers module and better match iter
...
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-19 09:45:54 +02:00
Thomas Vigouroux
5897d72b07
feat: add empty setup function
...
Will be used later to setup everything so that a language works properly
in each situation.
2020-04-18 19:32:51 +02:00
Thomas Vigouroux
00f871ab51
feat: add an example locals query
...
This will be the guide for the implementation of locals extraction,
which is treesitters name of definition/scope.
2020-04-18 19:21:01 +02:00
Thomas Vigouroux
e51b25dce2
feat: add some utils to read queries
2020-04-18 17:40:26 +02:00
Thomas Vigouroux
e647356210
style: add editorconfig
2020-04-18 17:39:03 +02:00
Thomas Vigouroux
3ca9471db6
Create README.md
2020-04-18 17:32:14 +02:00