kiyan42
d288e77a71
reorganize, remove most of useless code
2020-04-25 19:04:37 +02:00
Thomas Vigouroux
bae9f32952
Merge pull request #18 from kyazdani42/improve-configs
...
feat/refacto: add user interactions, improve configurations
2020-04-25 10:38:20 +02:00
kiyan42
62786ec7c6
feat/refacto: improve configurations
...
- You should now get the configs through functions
- Configs for languages are now inside a local object called parsers
- You can get the parser installation configurations with `get_parser_configs`
- A new object has been initialized inside configs to specify module config (called config).
- Provide functions to enable/disable a module on one buffer
- Provide functions to enable/disable a module on all buffers, and if filetype is
specified, for specific filetype
- Provide function to determine if module is activated for a specified filetype
2020-04-24 22:15:21 +02:00
Thomas Vigouroux
2a4fece2b6
Merge pull request #25 from TravonteD/ruby-support
...
Add query/locals for ruby syntax highlighting
2020-04-24 15:01:00 +02:00
TravonteD
79ab9fc6fb
Squashed commit of the following:
...
commit 1b3700b0cd68cb507c64b7243a5bea050379f09c
Author: TravonteD <tman1300@aol.com>
Date: Fri Apr 24 08:44:34 2020 -0400
remove local from the capture groups
commit 62f1a613c7c6f26e3a85f06f322ead28280dc7ca
Author: TravonteD <tman1300@aol.com>
Date: Thu Apr 23 18:43:09 2020 -0400
update captures for identifiers
commit 9966d5a9cd780b2de80e620cee6833fd341028d0
Author: TravonteD <tman1300@aol.com>
Date: Thu Apr 23 18:42:42 2020 -0400
add capture for constants that are recievers of a method call
commit 10f03606710a3a54c8c722e4883b9475c6f9f776
Author: TravonteD <tman1300@aol.com>
Date: Thu Apr 23 17:54:25 2020 -0400
update captures for function definitions and calls
commit 4b350274cb02e1b69ae013fa157bae5c6be9e577
Author: TravonteD <tman1300@aol.com>
Date: Thu Apr 23 17:21:10 2020 -0400
update captures for operators
commit c66d42cd0d56d0a1bbfb1f88ffa7ff6ae8b6c2df
Author: TravonteD <tman1300@aol.com>
Date: Thu Apr 23 17:10:13 2020 -0400
update captures for literals
commit a9c097fe03f7294fdaede760f2c016cf6c960a45
Author: TravonteD <tman1300@aol.com>
Date: Thu Apr 23 15:54:47 2020 -0400
add highlights and locals from treesitter-ruby
2020-04-24 08:48:18 -04:00
Kiyan Yazdani
313694b6dd
Merge pull request #24 from TravonteD/spell
...
Fix spelling inconsistencies
2020-04-23 19:56:09 +02:00
TravonteD
2bb1fdcbe2
Fix spelling inconsistencies
2020-04-23 12:51:00 -04:00
Kiyan Yazdani
b7fdd6ae38
Merge pull request #21 from haorenW1025/master
...
fix: add -fPIC flag to compiling
2020-04-23 11:33:06 +02:00
Thomas Vigouroux
931c2c67ce
Merge pull request #22 from vigoux/fix/lua-locals-highlights
...
Fix lua queries
2020-04-23 10:31:02 +02:00
Thomas Vigouroux
f6f402e870
locals(lua): incorrect query for field functions
2020-04-23 10:29:41 +02:00
Thomas Vigouroux
7cff1aabaa
highlight(lua): highlight local functions
2020-04-23 10:28:26 +02:00
haorenW1025
eb0f9b9e23
fix: add -fPIC flag to compiling
2020-04-23 13:48:20 +08:00
Kiyan Yazdani
ee5e88dca2
Merge pull request #7 from vigoux/feature/highlight
...
Syntax highlighting
2020-04-22 22:22:46 +02:00
Thomas Vigouroux
f7424d23a1
highlight: retain highlighters with the buffers
2020-04-22 22:03:23 +02:00
Thomas Vigouroux
c4862c656e
highlight(lua): add more operators
2020-04-22 22:02:42 +02:00
Thomas Vigouroux
d05728e155
feat: syntax highlighting
2020-04-22 22:02:42 +02:00
Kiyan Yazdani
8bb53c93d0
Merge pull request #20 from kyazdani42/fix-readme
...
fix: readme typos
2020-04-22 19:47:26 +02:00
Kiyan Yazdani
107b3a6312
Update README.md
...
Co-Authored-By: Thomas Vigouroux <39092278+vigoux@users.noreply.github.com>
2020-04-22 19:47:09 +02:00
Kiyan Yazdani
7a8f16b899
Update README.md
...
Co-Authored-By: Thomas Vigouroux <39092278+vigoux@users.noreply.github.com>
2020-04-22 19:46:57 +02:00
kiyan42
e8d85ddca8
fix: readme typos
2020-04-22 19:36:10 +02:00
Kiyan Yazdani
867653a830
Merge pull request #19 from vigoux/docs/readme-update
...
Add proper README
2020-04-22 19:23:01 +02:00
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