Commit graph

320 commits

Author SHA1 Message Date
Steve Vermeulen
e6300a045a C# highlighting - Fixed to highlight method calls, and changed break to be conditional instead of a repeat 2020-07-20 23:19:18 +02:00
Steve Vermeulen
870825e0e8 Added more highlight groups to C# file 2020-07-20 23:19:18 +02:00
Steve Vermeulen
4d71e1455c Added first attempt at highlighting and text objects for csharp 2020-07-20 23:19:18 +02:00
Stephan Seitz
64ebd4128e C highlights: Add operator "%" 2020-07-20 09:00:07 +02:00
Stephan Seitz
496b175d05 C++ locals: add variadic as @definition.var 2020-07-20 09:00:07 +02:00
Stephan Seitz
95d3ce23c6 C++ highlights: Add decltype keyword 2020-07-20 09:00:07 +02:00
Stephan Seitz
58d52ea62d C++ highlights: Highlight variadic parameters 2020-07-20 09:00:07 +02:00
Steve Vermeulen
3c0684f7f2 Fixed to use normal! instead of normal 2020-07-20 08:57:59 +02:00
Stephan Seitz
969edeeced Python highlights: highlight functions with self as methods (#198)
Also highlight __init__/__new__ as constructor
2020-07-20 08:57:12 +02:00
Stephan Seitz
58c6d2a73f Attach kind of reference to query result instead of using subfields
This makes smart_rename work also for types out of the box and we don't
need to search for the path of actual node.
2020-07-20 08:55:53 +02:00
TravonteD
45a1c3998d bash: add locals.scm for use with definition highlighting 2020-07-19 22:16:00 +02:00
WinWisely268
dee2dd65ee added go maintainer to README.md 2020-07-17 20:44:43 +02:00
winwisely268
59c084b5d8 go loop and func literal, rust textobject support 2020-07-17 20:44:43 +02:00
Steven Sojka
ac14bad7a8 fix(highlights): add array strings 2020-07-17 16:09:24 +02:00
TravonteD
a166d44c8a fix: fix references and definitions
The highlighting when highlighting references and definitions in ruby
were off. This corrects that by assigning them to their correct properties.
2020-07-16 20:26:25 +02:00
Stephan Seitz
bf1475df75 Add jsdoc parser 2020-07-16 13:16:18 +02:00
winwisely268
ee4cd7b0fd added textobject support for golang 2020-07-16 11:09:33 +02:00
Thomas Vigouroux
85d2f9ee93 highlights: some fixes
Add `goto` keyword for C.
Fix typo for lua.
2020-07-16 10:49:49 +02:00
Stephan Seitz
8cf2dc7f9a Refactor locals.lua:
- shared query group stuff -> query.lua
- local-specific stuff from ts_utils -> locals.lua
2020-07-16 09:34:31 +02:00
Stephan Seitz
a4e2692c7b Refactor: Add parsers.get_buf_lang 2020-07-16 09:34:31 +02:00
Thomas Vigouroux
1849f30bb5 fix(ts_utils): be sure to parse to get root
Be sure to call `parser:parser()` to get a tree instead of getting the
tree directly. This will not cost anything is the buffer is freshly
parsed.

Fixes #181
2020-07-16 07:58:39 +02:00
Stephan Seitz
a382e28c95 Python textobjects: Include @decorators and improve @conditional.inner 2020-07-15 23:16:13 +02:00
Pierre Poupin
7037f39ae9 fix(parsers): add additional typescript filetype to parser
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/181
2020-07-15 22:32:41 +02:00
Stephan Seitz
b480d25155 feat(textobjects): Add start to include preceding things like documentation 2020-07-15 20:12:52 +02:00
Stephan Seitz
31d1f068fd checkhealth for all query groups 2020-07-15 16:28:48 +02:00
Stephan Seitz
f5f5e3ec51 Use C++ parser for "cuda" filetype 2020-07-15 16:26:34 +02:00
Steven Sojka
ec2f4df1d8 fix(configs): deep merge table configs 2020-07-15 15:54:10 +02:00
Thomas Vigouroux
919b38091f feat(refactor.navigation): update jumplist on jump
Push a jumplist item when using `goto_definition`.

Fixes #166
2020-07-15 14:38:03 +02:00
Thomas Vigouroux
250289b3d6
Update README.md
Add a notice on how to temporarily fix highlighting issues.
2020-07-15 09:24:57 +02:00
Thomas Vigouroux
e405802863 fix(configs): simplify module setup process
Abuse a bit of tbl_extend and tbl_deep_extend.
We might want to continue this effort, and simplify this part of the
plugin.

Fixes #178
2020-07-15 09:00:14 +02:00
Thomas Vigouroux
8670df0905
docs(README): add new actions badge 2020-07-15 07:55:02 +02:00
Stephan Seitz
01c9f823f6 Also check textobjects queries in check-queries.lua 2020-07-14 22:34:43 +02:00
Stephan Seitz
d351c9b342 Update documentation for new modules 'refactor'/'textobjects' 2020-07-14 22:34:43 +02:00
Stephan Seitz
5e83307a43 Add C/C++ textobjects 2020-07-14 22:34:43 +02:00
Stephan Seitz
d685d82682 Add Python textobjects 2020-07-14 22:34:43 +02:00
Stephan Seitz
69cabc69be Add textobjects module 2020-07-14 22:34:43 +02:00
Stephan Seitz
c42c38a834 Add workflow for checking query files 2020-07-14 18:31:34 +02:00
Stephan Seitz
7d8fc9c4cd Fix highlight of usages after merging highlight_current_scope 2020-07-14 15:20:34 +02:00
Stephan Seitz
faa413287c Cpp locals: Fix syntax 2020-07-13 23:29:15 +02:00
Stephan Seitz
ee80e1ebc5 Add module refactor.highlight_current_scope 2020-07-13 22:26:17 +02:00
Stephan Seitz
8dfe085c41 Add ts_utils.highlight_node 2020-07-13 22:26:17 +02:00
Stephan Seitz
a027ffbe82 Add rust locals.scm 2020-07-13 22:25:33 +02:00
Stephan Seitz
97ad374816 Fix #167: Add custom_captures config key to set highlights for custom queries 2020-07-13 22:04:24 +02:00
Stephan Seitz
f803c74ebc C/C++ highlights: Small improvements for type definitions 2020-07-13 21:29:49 +02:00
Stephan Seitz
26cb05f205 Lint: remove second argument for one-argument function 2020-07-13 20:42:00 +02:00
Santos Gallegos
366e8b43bf Update example 2020-07-11 13:18:37 +02:00
Santos Gallegos
4f3954732b Typo 2020-07-11 08:09:31 +02:00
Thomas Vigouroux
d891c6eb06
docs: add GH actions build badge 2020-07-09 22:41:34 +02:00
Thomas Vigouroux
81c5f88ee3
docs: remove unused build status badge 2020-07-09 22:39:43 +02:00
Thomas Vigouroux
0e041bd343 ci: use GH Actions istead of Travis CI 2020-07-09 22:34:34 +02:00