Commit graph

144 commits

Author SHA1 Message Date
TravonteD
72905524c2 Add fennel support 2020-08-16 20:40:33 -04: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
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
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
282e33ad9c fix(definitions): optimize and fix definition highlighting 2020-08-13 07:43:09 -05:00
Thomas Vigouroux
ba3167a1a4 perf: cache parser file list for performance 2020-08-11 20:21:22 +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
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
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
1427c43cf0 Change capture groups and add variable highlights 2020-08-09 19:12:26 +02:00
Santos Gallegos
429036317a Lua: highlight function name 2020-08-09 18:38:00 +02:00
Rafał Camlet
3c7528a294 Add noremap option to mappings 2020-08-06 13:28:53 +02:00
Stephan Seitz
0f1dcc396a feat(install): Export iter_cmd 2020-08-02 22:58:08 +02:00
Stephan Seitz
70939e71c9 Add TSUninstall 2020-08-02 22:58:08 +02:00
Stephan Seitz
a872762d82 Add TSUpdate command to update parsers 2020-08-02 22:58:08 +02:00
kiyan42
a855538e0a fix decremental selection 2020-08-02 20:14:34 +02:00
Steven Sojka
67509d4627 feat(predicates): add adjacent predicate 2020-07-31 11:54:09 -05:00
Steven Sojka
bd1d1adb35 rename query parser to query from scheme 2020-07-28 18:30:24 +02:00
Steven Sojka
aaa24cc47a feat(parsers): add scheme parser 2020-07-28 08:28:36 -05:00
Thomas Vigouroux
572a4a964b configs: attach on unknown parsers too 2020-07-27 15:18:48 +02:00
Stephan Seitz
fae96b588d Predicates: remove function unlispify and use Lisp names directly 2020-07-27 11:07:09 +02:00
Stephan Seitz
6f771507a8 Add predicate: has-ancestor? 2020-07-27 10:15:33 +02:00
Stephan Seitz
5462fc92cb Add predicates module 2020-07-27 10:15:33 +02:00
Santos Gallegos
6f01384cb2 Parsers: add reStructuredText 2020-07-27 09:16:26 +02:00
Akin Sowemimo
599bec3890 Rename attribute to annotation 2020-07-23 17:17:03 +02:00
Akin Sowemimo
ee83c3bd02 Add attribute to the highlight map 2020-07-23 17:17:03 +02:00
Stephan Seitz
cd507463ac Fix #213: Add parser for dart 2020-07-23 09:08:22 +02:00
Stephan Seitz
16af10999c Fix #206: Use lsp.util.apply_text_edits for smart_rename 2020-07-20 23:24:54 +02:00
Steve Vermeulen
3c0684f7f2 Fixed to use normal! instead of normal 2020-07-20 08:57:59 +02:00
Stephan Seitz
bf1475df75 Add jsdoc parser 2020-07-16 13:16:18 +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
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
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
Stephan Seitz
d351c9b342 Update documentation for new modules 'refactor'/'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
7d8fc9c4cd Fix highlight of usages after merging highlight_current_scope 2020-07-14 15:20:34 +02:00