helix-mirror/runtime/queries
Gokul Soumya 4ee92cad19
Add treesitter textobjects (#728)
* Add treesitter textobject queries

Only for Go, Python and Rust for now.

* Add tree-sitter textobjects

Only has functions and class objects as of now.

* Fix tests

* Add docs for tree-sitter textobjects

* Add guide for creating new textobject queries

* Add parameter textobject

Only parameter.inside is implemented now, parameter.around
will probably require custom predicates akin to nvim' `make-range`
since we want to select a trailing comma too (a comma will be
an anonymous node and matching against them doesn't work similar
to named nodes)

* Simplify TextObject cell init
2021-10-23 11:41:19 +09:00
..
bash Add tree-sitter queries. 2021-04-09 18:57:46 +09:00
c runtime: Query improvements 2021-09-06 15:25:46 +09:00
c-sharp Enable c-sharp language and highlights (#861) 2021-10-17 13:45:09 +09:00
cmake CMake support (#888) 2021-10-23 08:57:21 +09:00
cpp Import tree sitter queries. 2021-04-08 23:25:35 +09:00
css Add tree-sitter queries. 2021-04-09 18:57:46 +09:00
elixir scope arities in captures as operators 2021-10-17 10:50:20 -05:00
go Add treesitter textobjects (#728) 2021-10-23 11:41:19 +09:00
haskell Improve highlighting scopes 2021-09-06 15:25:46 +09:00
html Add tree-sitter queries. 2021-04-09 18:57:46 +09:00
java fix digit escapes in java & php highlights (#846) 2021-10-16 18:02:06 +09:00
javascript runtime: Query improvements 2021-09-06 15:25:46 +09:00
json Add tree-sitter queries. 2021-04-09 18:57:46 +09:00
julia Improve grammar definitions 2021-09-06 15:25:46 +09:00
latex Improve grammar definitions 2021-09-06 15:25:46 +09:00
ledger Update ledger treesitter injections (#732) 2021-09-09 10:13:11 +09:00
lua Improve highlighting scopes 2021-09-06 15:25:46 +09:00
nix Improve nix indents 2021-08-08 13:26:30 +09:00
ocaml Improve docs, fix up a few highlight scopes 2021-09-07 13:03:48 +09:00
ocaml-interface OCaml support (#666) 2021-09-02 01:08:08 +09:00
php fix digit escapes in java & php highlights (#846) 2021-10-16 18:02:06 +09:00
protobuf fix: add missing optional keyword to protobuf syntax 2021-08-20 19:52:21 +09:00
python Add treesitter textobjects (#728) 2021-10-23 11:41:19 +09:00
ruby runtime: Query improvements 2021-09-06 15:25:46 +09:00
rust Add treesitter textobjects (#728) 2021-10-23 11:41:19 +09:00
svelte languages: add svelte support (#733) 2021-09-17 11:04:55 +09:00
toml Add tree-sitter queries. 2021-04-09 18:57:46 +09:00
tsq Add highlight support for tree-sitter-query language (tsq) (#845) 2021-10-16 17:58:04 +09:00
tsx At least partly highlight tsx 2021-09-06 15:25:46 +09:00
typescript Add typescript support & ts/js indentation queries 2021-06-01 17:55:11 +09:00
vue Add Vue tree sitter grammar (#787) 2021-10-10 22:09:17 +09:00
yaml Improve grammar definitions 2021-09-06 15:25:46 +09:00
zig Zig tree-sitter rework (#811) 2021-10-05 12:18:15 +09:00