Commit Graph

28 Commits

Author SHA1 Message Date
Andy K. Massimino
2ea566403c Use ts syn skip if available 2021-09-27 21:03:55 -04:00
Andy K. Massimino
b9cd82ccf8 Update TS query library file 2021-07-19 08:46:12 -04:00
Andy K. Massimino
05f4962c64 Fix TS query reload autocmds, fix #161 2021-07-05 18:45:44 -04:00
Andy K. Massimino
39e39b1338 Update ts query lua (fix lint) 2021-07-04 16:34:47 -04:00
Andy K. Massimino
78775d82af Update ts query lua 2021-07-04 16:29:52 -04:00
Andy K. Massimino
7b7b5f3746 Inline nvim-treesitter's query.lua 2021-06-15 21:04:56 -04:00
Andy K. Massimino
bfc2d1b24e Fix #155 regression when not using treesitter 2021-05-11 21:10:21 -04:00
Andy K. Massimino
f5b98dd645 Add missing file for ccaa000, fix #154 2021-05-10 22:16:14 -04:00
Andy K. Massimino
ccaa000f9d Add syntax highlight for offscreen with TS 2021-05-08 23:16:31 -04:00
Andy K. Massimino
952e871e67 Reorganize lua slightly 2021-05-08 22:58:08 -04:00
Andy K. Massimino
5bbcdf9dbb Enable g:matchup_delim_nomids for TS queries 2021-05-06 23:01:44 -04:00
Andy K. Massimino
d46c404cf2 Allow ts range open/close nodes 2021-04-30 20:10:32 -04:00
Andy K. Massimino
71b97bac53 Use ts_utils.memoize, force a TS parse if needed
Fix CI pipeline
2021-04-20 19:16:52 -04:00
Andy K. Massimino
4a5200db04 Set TS cache key 2021-04-19 23:15:48 -04:00
Andy K. Massimino
842131335a Add cache for active query matches 2021-04-19 22:25:36 -04:00
Andy K. Massimino
acddc3aab3 Allow TS synthetic query for initial matches 2021-04-18 22:38:59 -04:00
Andy K. Massimino
c39903dce2 Add support for queries with nvim-ts's make-range! 2021-04-18 12:45:08 -04:00
Andy K. Massimino
0174502c7c Add missing .luacheckrc 2021-04-18 10:02:24 -04:00
Andy K. Massimino
9a722db8a8 Fix lua lint 2 2021-04-18 09:58:21 -04:00
Andy K. Massimino
5d0d315942 Lint lua 2021-04-18 09:50:31 -04:00
Andy K. Massimino
dc4e9f4008 Add preliminary TS query file for ruby 2021-04-17 23:35:37 -04:00
Andy K. Massimino
f805db2eac Boost lua match cache 2021-04-13 19:09:29 -04:00
Andy K. Massimino
58a26a4c0c Reduce load time with ts lua re #146 2021-04-12 18:38:50 -04:00
Andy K. Massimino
e54d6250d7 Filter TS match positions correctly 2021-04-03 15:17:04 -04:00
Cormac Relf
9fbb0932c0 tree-sitter: ignore matches in inner scopes
Previously, placing the cursor on line 1 would highlight every elif and
else in the whole block of code. % would jump to line 4, then % from
there would cycle between lines 2, 4 and 6.

 1   if noice:
 2       if yeah:
 3           pass
 4       elif no:
 5           pass
 6       else:
 7           pass
 8   elif blah:
 9       pass
10   else:
11       pass

With the change, which I think the code had contemplated given there was
already an unused `M.containing_scope(node, bufnr, info.key)` call, % will
only move between ifs and elses that are in the same `@scope.if_`, and
not to any inner scopes. Hence the example will have two mutually
exclusive %-cycles: [1, 8, 10] and [2, 4, 6].
2021-03-17 15:20:27 +11:00
Andy K. Massimino
71132a93ea Add a tree-sitter test 2021-02-26 00:08:19 -05:00
Andy K. Massimino
9c6e7410a3 Check for nvim-treesitter 2021-02-25 22:56:38 -05:00
Andy K. Massimino
e3bc1fa821 Add neovim tree-sitter integration 2021-02-25 22:48:13 -05:00