Commit graph

18 commits

Author SHA1 Message Date
Phạm Huy Hoàng
722617e672 refactor(format): drop extra indentation for field 2024-03-21 15:51:26 +01:00
Pham Huy Hoang
57a8acf0c4 chore: query formatting 2024-01-19 16:58:37 +01:00
Christian Clason
5b90ea2aba feat(locals)!: switch to upstream captures 2024-01-19 16:58:37 +01:00
beardedsakimonkey
e218a862a1 locals(lua): fix directive not applying
fixes #3280
2022-10-17 08:21:55 +02:00
Christian Clason
c80715f883
feat(lua)!: switch from our fork to MunifTanjim's (#2272)
also take queries from https://github.com/MunifTanjim/nvim-treesitter-lua/tree/main/queries/lua

BREAKING CHANGE: queries are not compatible; modules will have to update
2022-01-18 22:15:26 +01:00
Santos Gallegos
e5319aa9aa Lua: improve scope queries
- Set scope to parent
- Group all scopes
- Use the . operator
2021-02-07 15:26:34 +01:00
Thomas Vigouroux
12181e236e fix(lua): correctly handle do_statement in locals 2021-01-27 10:21:37 +01:00
El Piloto
775021cbd5 Remove duplicate capture for function_definition 2020-12-16 11:44:39 +01:00
El Piloto
6182c2b0a6 Capture anonymous functions assigned to variables
Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/709
2020-12-16 11:44:39 +01:00
Thomas Vigouroux
d5a8ff94cd lua: update to pull shebang fix 2020-11-25 21:47:38 +01:00
Steven Sojka
579c9936d6 feat(highlights): add is predicate 2020-08-16 09:04:07 -05:00
Stephan Seitz
a0abaf936c Lua locals: Make property_identifier a reference 2020-08-03 08:06:40 +02:00
Thomas Vigouroux
3faaeb479b locals(lua): simplify args 2020-07-08 22:16:53 +02:00
Thomas Vigouroux
e8af62c843 locals(lua): capture function definition params 2020-07-01 14:46:55 +02:00
Thomas Vigouroux
22f73628f6 fix(lua): update queries 2020-05-07 14:03:29 +02:00
Thomas Vigouroux
f6f402e870 locals(lua): incorrect query for field functions 2020-04-23 10:29:41 +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
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