Commit Graph

591 Commits

Author SHA1 Message Date
Sainnhe Park
cfb83906d3 Avoid goto logic in internal.lua
The `goto` keyword is introduced in a newer version of lua, running this
plugin with an older version of lua will produce an error:

```
Error detected while processing function matchup#loader#bufwinenter[4]..matchup#loader#init_buffer[5]..matchup#ts_engine#is_enabled[4]..<SNR>126_forward:
line    1:
E5108: Error executing lua vim.lua:63: ...local/share/nvim/plugins/vim-matchup/lua/treesitter-matchup/internal.lua:195: '=' expected near 'continue'
stack traceback:
        [C]: in function 'error'
        vim.lua:63: in function <vim.lua:57>
        [C]: in function 'require'
        [string "luaeval()"]:1: in main chunk
Error detected while processing function matchup#loader#bufwinenter[4]..matchup#loader#init_buffer[15]..matchup#ts_engine#is_hl_enabled[4]..<SNR>126_forward:
line    1:
E5108: Error executing lua vim.lua:63: ...local/share/nvim/plugins/vim-matchup/lua/treesitter-matchup/internal.lua:195: '=' expected near 'continue'
stack traceback:
        [C]: in function 'error'
        vim.lua:63: in function <vim.lua:57>
        [C]: in function 'require'
        [string "luaeval()"]:1: in main chunk
Error detected while processing function matchup#loader#init_buffer[5]..matchup#ts_engine#is_enabled[4]..<SNR>126_forward:
line    1:
E5108: Error executing lua vim.lua:63: ...local/share/nvim/plugins/vim-matchup/lua/treesitter-matchup/internal.lua:195: '=' expected near 'continue'
stack traceback:
        [C]: in function 'error'
        vim.lua:63: in function <vim.lua:57>
        [C]: in function 'require'
        [string "luaeval()"]:1: in main chunk
```

This commit removes the goto keyword to avoid such error. Has been
tested on debian testing.

Related: https://github.com/AaronJackson/vrn/issues/157
2022-02-03 11:22:16 +08:00
Andy Massimino
07196cfb15 Merge pull request #207 from captainko/master
fix(treesitter-matchup): Fixes #206
2022-01-26 20:38:17 -05:00
captainko
91c9530d49 fix(treesitter-matchup): Fixes #206 2022-01-26 12:07:01 +07:00
Andy K. Massimino
f129003823 Wrap TS parse in pcall to prevent crash
Fixes #201A.
2022-01-25 08:52:06 -05:00
Andy K. Massimino
fb588f4862 Use stricter pattern for html text_obj quirk 2022-01-25 08:51:28 -05:00
Andy K. Massimino
43483d27bc Update lua TS queries for upstream parser change, fix #204 2022-01-18 19:05:57 -05:00
Andy K. Massimino
97ffd1a206 Inside prev Z% motion again 2022-01-08 13:37:56 -05:00
Andy K. Massimino
0981e4d5e0 Add basic TS support for Go re #121 2022-01-08 12:32:34 -05:00
Andy K. Massimino
ecca332fca Fix d]% when close is at column 1, fix #203 2022-01-08 11:08:41 -05:00
Andy K. Massimino
85c65f4594 Fix gutter text in popup with scl and nonu, closes #187 2021-12-31 16:35:21 -05:00
Andy K. Massimino
06e879bda2 Prepend omaps with <ignore> (try to fix #199)
This forces vim to consider using omaps instead of incorrect normal ones
when executing a macro.  Taking this approach because it does not seem
to cause any side-effects and still allows user customization of maps
under the existing lhs/rhs.
2021-12-31 12:31:43 -05:00
Andy K. Massimino
0ee65c7511 Fix a missed TS support check 2021-12-31 12:08:00 -05:00
Andy K. Massimino
cc1d044241 Be more careful about whether we have TS capability 2021-12-31 12:04:47 -05:00
Andy K. Massimino
bb2709884f Use more accurate cache for popup props re #202 2021-12-31 11:40:36 -05:00
Andy K. Massimino
4a5bb96d2d Cleanup echo 2021-12-27 12:24:39 -05:00
Andy K. Massimino
181b4f6518 Revert "Cleanup echo"
This reverts commit 3d3e6c5472.
2021-12-27 12:24:09 -05:00
Andy K. Massimino
3d3e6c5472 Cleanup echo 2021-12-27 12:23:24 -05:00
Andy K. Massimino
b21ef29c08 Fix exception with TS offscreen virttext 2021-12-27 12:22:05 -05:00
Andy K. Massimino
2f9073e5b6 Fire User autocmd on offscreen popup/float re #200 2021-12-26 16:16:01 -05:00
Andy K. Massimino
ed41835a9f Use virt_text_pos overlay for TS end match 2021-12-26 15:57:06 -05:00
Andy K. Massimino
ef044ee012 Add javascript comment markers re #190 2021-11-29 21:03:40 -05:00
Andy K. Massimino
cde0efc774 Add lua setup wrapper 2021-11-26 11:53:15 -05:00
Andy K. Massimino
afb5b728d7 Document more nvim TS config options 2021-11-26 11:49:25 -05:00
Andy K. Massimino
2c3227b3de Be more accurate to cursor in TS skip expr 2021-11-24 11:37:21 -05:00
Andy K. Massimino
8ef96a7ca9 Highlight delete surrounding feature 2021-11-24 09:58:08 -05:00
Andy K. Massimino
66d8936fd0 Add TS lang-based skips, fixes #198 2021-11-24 09:41:43 -05:00
Andy K. Massimino
4e684c1fdf Document fullwidth popup option 2021-11-24 09:28:37 -05:00
Andy K. Massimino
f4395fd74c Add starter standard html regexes 2021-11-21 15:20:32 -05:00
Andy K. Massimino
d51703ab92 Try to fix flaky test 2021-11-20 12:22:22 -05:00
Andy K. Massimino
90aa399c8e Fix ts syn skip expression 2021-11-20 11:48:50 -05:00
Andy K. Massimino
1840dac2c4 Increase verbosity in test-syn 2021-11-20 10:39:24 -05:00
Andy K. Massimino
cd3665840d Add hlgroup MatchupVirtualText 2021-11-20 10:20:28 -05:00
Andy K. Massimino
6e8f165570 Fix same matching with offset 2021-11-20 10:17:31 -05:00
Andy Massimino
15514aa784 Merge pull request #195 from vilari-mickopf/master
Add option to change virt text markers
2021-11-20 10:16:51 -05:00
Filip Markovic
67ef142d1a Add option to change virt text markers 2021-11-15 03:05:34 +01:00
Andy K. Massimino
50cadec5e6 Add option to disable ts virtual_text
Fixes #191
Closes #188
2021-11-04 22:05:42 -04:00
Andy K. Massimino
42c91ec8cc Fix offscreen popup covering cursor (fixes #189) 2021-10-20 21:15:31 -04:00
Andy K. Massimino
45dee50b0f Clean up some old things 2021-10-16 15:28:17 -04:00
Andy K. Massimino
300e64f7b4 React matchparen to changes in signcolumn 2021-10-16 13:06:07 -04:00
Andy K. Massimino
d0a84be648 Update docs 2021-10-10 21:36:47 -04:00
Andy K. Massimino
09b5d78f25 Try to avoid bad interaction with YCM, re #186 2021-10-10 21:11:45 -04:00
Andy K. Massimino
e5eefcc04e Skip flaky test for now 2021-10-09 14:12:00 -04:00
Andy K. Massimino
a211159069 Fix where test 2021-10-09 13:59:40 -04:00
Andy K. Massimino
5960027665 Add test for where feature 2021-10-09 13:07:50 -04:00
Andy K. Massimino
9f764e4011 Add more rust TS queries re #140 2021-10-09 12:27:12 -04:00
Andy K. Massimino
6cf98f9c7f Fix flaky test 2021-10-09 11:46:21 -04:00
Andy Massimino
f62f19e4d8 Merge pull request #185 from andymass/dev-test-ts-split
Improve tests
2021-10-09 11:20:10 -04:00
Andy K. Massimino
12a7ccd12b Add vader new test shim
Install vader properly
2021-10-07 21:55:00 -04:00
Andy K. Massimino
ef9b5a2176 Fix flaky test
Relax flaky test more

Fix another flaky test
2021-10-07 21:54:58 -04:00
Andy K. Massimino
79254a238e Improve ts syn test
Fix
2021-10-07 21:47:16 -04:00