Commit Graph

438 Commits

Author SHA1 Message Date
Andy K. Massimino
5bdf7690ed Fix julia refresh, fix #147 2021-04-20 10:53:43 -04:00
Andy K. Massimino
4a5200db04 Set TS cache key 2021-04-19 23:15:48 -04:00
Andy K. Massimino
2f5dfd852f Update ruby TS queries 2021-04-19 22:56:06 -04:00
Andy K. Massimino
32e79b18e6 Fix various lints 2021-04-19 22:31:24 -04:00
Andy K. Massimino
acbd3e181d Allow tagnameonly for typescriptreact, fix #141 2021-04-19 22:28:12 -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
cc0af94afb Show TS end match text 2021-04-18 17:12:12 -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
ca9e2b2f53 Fix lua lint 2021-04-18 09:54:18 -04:00
Andy K. Massimino
5d0d315942 Lint lua 2021-04-18 09:50:31 -04:00
Andy K. Massimino
560152c1d6 Fix TS ruby query 2021-04-18 09:46:52 -04:00
Andy K. Massimino
dc4e9f4008 Add preliminary TS query file for ruby 2021-04-17 23:35:37 -04:00
Andy K. Massimino
218d6bce67 Adjust engine loading sequence
- If tree-sitter is present, don't use b:match_words
  - Enable delim for buffer if any engine is active

TODO reconsider how the configuration here works
2021-04-17 23:03:46 -04:00
Andy K. Massimino
1d2ba4dfa9 Cleanup 2021-04-14 22:19:27 -04:00
Andy K. Massimino
58c55eb721 Use virttext to show TS based end 2021-04-14 21:18:17 -04:00
Andy K. Massimino
95b58e37fc Allow highlight surround with current re #142 2021-04-13 21:22:38 -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
5a518945fa Improve load time slightly re #146 2021-04-11 14:12:50 -04:00
Andy K. Massimino
e54d6250d7 Filter TS match positions correctly 2021-04-03 15:17:04 -04:00
Andy K. Massimino
b3bd7fc61a Fix bufnr incompatibility 2021-03-29 20:40:32 -04:00
Andy K. Massimino
bbd27154ab Add a cache to get_surrounding_impl (re #118) 2021-03-29 19:30:58 -04:00
Andy Massimino
e477123fcc Merge pull request #139 from cormacrelf/master
tree-sitter: ignore matches in inner scopes
2021-03-17 11:43:48 -04:00
Cormac Relf
72f36ee10f add test for nested ifs in tree-sitter python 2021-03-17 17:28:03 +11: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
5ce13cec88 Fix scrolloff option error in neovim float, fix #138 2021-03-13 20:53:58 -05:00
Andy K. Massimino
394c3eb641 Highlight match in vim popup win 2021-03-11 21:48:41 -05:00
Andy K. Massimino
eac522246f Tweak perf reltimefloat call 2021-03-11 21:48:35 -05:00
Andy K. Massimino
f2e382f8ea Fix float win display 2021-03-11 21:48:33 -05:00
Andy K. Massimino
4f5619fd1a Add check for WinScrolled (fix #137) 2021-03-03 17:19:19 -05:00
Andy K. Massimino
0caff20a36 Tweak unmatchit 2021-03-03 17:18:30 -05:00
Andy K. Massimino
caf7a84be4 Add nvim floating win scroll check 2021-02-28 15:18:16 -05:00
Andy K. Massimino
2a00673e8e Use buf highlight for matchparen in nvim 2021-02-28 15:18:01 -05:00
Andy K. Massimino
69208b0801 Use stopline in highlight_surround (re #118) 2021-02-27 11:40:54 -05:00
Andy Massimino
000f973983 Merge pull request #133 from andymass/feature-treesitter
Add neovim tree-sitter integration
2021-02-26 19:02:10 -05:00
Andy Massimino
8465f86c0b Merge pull request #134 from psvenk/ignore-tags
Ignore help tags
2021-02-26 16:39:12 -05: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
Andy K. Massimino
0ec3160692 Support additional engines in delim 2021-02-25 22:21:45 -05:00
Andy K. Massimino
08a872b8e0 Adjust testing slightly 2021-02-25 22:21:45 -05:00
psvenk
06ba58e237 Ignore help tags 2021-02-25 10:51:47 -05:00
Andy K. Massimino
b131a5b357 Add tex matchpref for relaxed env match (re #131) 2021-02-23 00:25:32 -05:00
Andy K. Massimino
f1f11e703b Make minor cleanups 2021-02-23 00:18:36 -05:00
Andy K. Massimino
cc13387139 Workaround vim indentexpr bug, fixes #132 2021-02-21 16:38:24 -05:00
Andy K. Massimino
52b3ec1ee8 Remove accidental inclusion 2021-01-28 22:48:57 -05:00
Andy K. Massimino
5b872ed3e4 Add option to not match mids, re #127 2021-01-28 22:47:13 -05:00