Commit graph

436 commits

Author SHA1 Message Date
Steven Sojka
cab8717959 chore(highlights): remove is predicate usage 2020-08-17 19:27:35 +02:00
Steven Sojka
b796f0725d
Merge pull request #305 from theHamsta/textobjects-submodules
Textobjects submodules
2020-08-17 11:39:22 -05:00
delphinus
0b3cd6c131 Avoid duplication of help tags 2020-08-17 17:56:05 +02:00
kiyan42
20e448882e some refacto, doc fixes and jsx queries
- compute query language extensions *after* default ones
(jsx after javascript)
- remove outdated ts_utils functions from docs
- add better regex detection to javascript
- javascriptreact to use javascript queries
- add javascript.jsx to javascript queries
- write jsx.scm hl file
2020-08-17 17:48:33 +02:00
Stephan Seitz
5216811459 chore(textobjects): split up into submodules 2020-08-17 17:46:40 +02:00
Stephan Seitz
32271b26ef Textobjects: set jump before going to adjacent_textobject 2020-08-17 17:45:46 +02:00
Stephan Seitz
f3ed370643 Textobject goto: treat end differently that start 2020-08-17 17:45:46 +02:00
Stephan Seitz
be2cfc1bca Textobjects: Allow nested textobjects on goto_adjacent 2020-08-17 17:45:46 +02:00
Stephan Seitz
f6681c230f chore(textobject): use query.find_best_match to find next/previous textobject 2020-08-17 17:44:40 +02:00
Stephan Seitz
e629efafd8 Textobjects: provide mappings for all swap/goto functions 2020-08-17 17:44:40 +02:00
Stephan Seitz
1642e37499 Textobjects: Add goto_adjacent 2020-08-17 17:44:40 +02:00
Stephan Seitz
5cfa03f2bd Textobjects: add swap feature 2020-08-17 17:44:40 +02:00
Steven Sojka
a5c89f3762
Merge pull request #316 from TravonteD/fennel
Add fennel support
2020-08-17 06:34:46 -05:00
TravonteD
72905524c2 Add fennel support 2020-08-16 20:40:33 -04:00
Santos Gallegos
cf37d143bf Python: update highlights
- Get rid of @self
- Highlight methods correctly
- Highlight self as the first parameter of a method
- Use new syntax (# for predicates, (_) instead of (*) for wildcards)
2020-08-16 22:00:11 +02:00
Santos Gallegos
ed3469b59f Python: update locals 2020-08-16 21:49:14 +02:00
Stephan Seitz
d2c5e496c0 docs(hlgroups): document TSAnnotation, TSCurrentScope, TSDefinition,
TSDefinitionUsage
2020-08-16 21:45:26 +02:00
Santos Gallegos
d4d77d6053 Docs: document @punctuation.special 2020-08-16 20:36:32 +02:00
Steven Sojka
ce43dbf54c fix(queries): use vim-match for non lua regexes 2020-08-16 18:31:56 +02:00
Steven Sojka
4a747aa30c
Merge pull request #296 from steelsojka/feat-is-predicate
feat(highlights): add is predicate
2020-08-16 11:27:15 -05:00
Steven Sojka
5462027beb
Merge pull request #295 from steelsojka/feature/set-scopes-for-definitions
feat(defintions): allow setting of scope
2020-08-16 11:26:44 -05:00
Steven Sojka
7f7219b379 feat(definitions): allow setting of scope 2020-08-16 09:10:09 -05:00
Steven Sojka
579c9936d6 feat(highlights): add is predicate 2020-08-16 09:04:07 -05:00
Chinmay Dalal
64df3e1791 [java] Add label highlight 2020-08-16 09:58:33 +02:00
Rafał Camlet
83210fa412 fix: check 'after' against third directory 2020-08-15 22:03:33 +02:00
Steven Sojka
994baf4539
Merge pull request #291 from vigoux/post-upstream-work
fix: refactor after upstream refactor
2020-08-15 08:22:14 -05:00
Thomas Vigouroux
a9abe2b9b0 docs: document the new runtime query system 2020-08-14 16:42:53 +02:00
Thomas Vigouroux
26c8d1eac0 feat: intuitive runtime queries
Starting now, runtime queries will be sourced in this order :

- Queries that are not in any `after` folder, will serve as a base, with
each occurence overwriting the others (that is, .config/nvim/queries has
the highest priority)
- Queries within the `after` directory will be sourced one after the
other.

The rationale is that this reminds all the `.vim` files (ftplugin) for
example, and this allows both to experiment and to override queries
easily.
2020-08-14 16:42:53 +02:00
Thomas Vigouroux
98b7515014 fix: refactor after upstream refactor 2020-08-14 15:00:13 +02:00
Steven Sojka
e5434fc21e fix(locals): add shorthand identifiers as references and definitions 2020-08-14 14:22:05 +02:00
Stephan Seitz
187dc8e3f5 Python highlights: Highlight ->, ... 2020-08-14 13:53:00 +02:00
Steven Sojka
52420544ff
Merge pull request #284 from steelsojka/fix-usages
fix(definitions): optimize and fix definition highlighting
2020-08-14 06:42:33 -05:00
Steven Sojka
282e33ad9c fix(definitions): optimize and fix definition highlighting 2020-08-13 07:43:09 -05:00
Thomas Vigouroux
1846d92ec6 fix(highlight): link TSVariable to Normal 2020-08-13 14:09:48 +02:00
Stephan Seitz
c41b6e9197 Fix #286: Highlight C++ raw_string_literal 2020-08-13 09:48:07 +02:00
Steven Sojka
7806b16cc2 fix(java): add lambdas as a scope 2020-08-12 21:20:54 +02:00
Thomas Vigouroux
ba3167a1a4 perf: cache parser file list for performance 2020-08-11 20:21:22 +02:00
Santos Gallegos
8f3b601bcc RST: update textobjects 2020-08-11 20:21:03 +02:00
Thomas Vigouroux
b70269f01c docs: advertize zulip instead of gitter 2020-08-11 15:52:29 +02:00
Laxman Sooriyathas
0478fe8a48 pass full module path in recurse accumulator to enable/disable sub modules 2020-08-11 14:12:56 +02:00
Stephan Seitz
1c366a3a1c Lua highlights: add operator "=" and punctuation 2020-08-11 14:11:24 +02:00
Steven Sojka
4f2689c501
fix(locals): fix find definition implementation (#274)
Co-authored-by: Thomas Vigouroux <39092278+vigoux@users.noreply.github.com>
2020-08-11 09:53:05 +02:00
Steven Sojka
4982d05ec7 fix(queries): don't load queries on startup 2020-08-11 09:50:30 +02:00
Steven Sojka
47a4eadf44
Merge pull request #273 from vigoux/fix-enable-disable
configs: actually enable and disable on setup
2020-08-10 15:10:34 -05:00
Thomas Vigouroux
0a1353e8aa configs: actually enable and disable on setup 2020-08-10 19:01:22 +02:00
Thomas Vigouroux
5a7579c8f5 fix(highlight): Use TSParameter 2020-08-10 14:17:55 +02:00
Akin Sowemimo
bbe8e5eab2 Update contributing.md 2020-08-09 19:12:26 +02:00
Akin Sowemimo
941e40f659 Re add missing comments 2020-08-09 19:12:26 +02:00
Akin Sowemimo
1427c43cf0 Change capture groups and add variable highlights 2020-08-09 19:12:26 +02:00
Akin Sowemimo
aaa990053a Add break and increment operators and tweak formatting 2020-08-09 19:12:26 +02:00