Commit Graph

622 Commits

Author SHA1 Message Date
Allen Hsu
ab8575d05f TS Rust add if let. (#245)
Co-authored-by: Allen Hsu <allen.hsusp+git@gmail.com>
2022-09-11 12:03:38 -04:00
Allen Hsu
9aa08cd0bf TS Ruby add block param delimiters (#244)
Co-authored-by: Allen Hsu <allen.hsusp+git@gmail.com>
2022-09-01 20:04:09 -04:00
Andy K. Massimino
5aa3e58db4 Add TS lua do/end query, fix #238 2022-08-27 12:00:32 -04:00
Andy Massimino
950ef5d6a2 Fix for changes to nvim upstream TS/hl API, fix #241 (#242)
* Fix for changes to nvim upstream TS/hl API, fix #241

re https://github.com/neovim/neovim/pull/19931

* Work around bug in TS playground util

* Work around nvim TS highlighter.hl_map change

* Fix lint
2022-08-27 11:59:34 -04:00
Ramil Gadzhiev
e59d5c73f1 TS support ruby. Add absent modifiers (#233) 2022-08-23 20:55:51 -04:00
Andy K. Massimino
87b8e9018f Fix TS syntax option load order 2022-08-17 22:55:07 -04:00
Andy K. Massimino
3d4ba4c3ae Adjust check for TS hl module, syntax, fix #198,#239 2022-08-17 22:37:24 -04:00
Andy K. Massimino
3cebd218a7 Remove vim match_words override ref #214 2022-07-16 08:49:38 -04:00
Andy K. Massimino
33fc8b819f Allow offscreen position at cursor, fixes #223 2022-07-12 18:26:17 -04:00
Andy K. Massimino
976ebfe61b Fix some issues with offscreen popup props, fixes #228 2022-05-28 21:01:08 -04:00
Enrico Maria De Angelis
a2f1c05ddb Fix offscreen popup when there is a WinBar (#229) 2022-05-28 20:48:52 -04:00
Andy Massimino
ecf6f16bfa Test fix 220525 (#226)
* Try to fix TS test

* Fix gitlab ci yaml

* Fix gitlab ci syntax 2
2022-05-25 22:08:52 -04:00
Andy K. Massimino
45f9643b6b Split transmute handlers for TS error re #225 2022-05-25 21:45:10 -04:00
Andy K. Massimino
e79020276a Add basic perl TS matches 2022-05-14 08:47:07 -04:00
Andy K. Massimino
485e71120f Fix bug with missing node text, fix #222 2022-05-05 21:07:25 -04:00
Andy K. Massimino
fc03e1982a Fix TS nvim test 2022-05-03 23:06:56 -04:00
Andy K. Massimino
b016e0ffab Fix lua lint 2022-05-03 22:16:03 -04:00
Andy K. Massimino
96abbdcb2e Improve performance of TS matching with xml re #221 2022-05-03 22:11:41 -04:00
Andy K. Massimino
2317174b58 Adjust html text_obj edges with TS re #218 2022-05-03 21:02:08 -04:00
Andy K. Massimino
1cb069f2a5 Update neovim version in treesitter test 2022-04-20 19:34:00 -04:00
Andy Massimino
bb04f9fa64 Merge pull request #217 from mehalter/master
Fix _node_text
2022-04-19 12:19:59 -04:00
Micah Halter
366a72009a Fix _node_text
Signed-off-by: Micah Halter <micah@balena.io>
2022-04-19 08:52:49 -04:00
Andy Massimino
8727de1b43 Merge pull request #216 from mehalter/master
update nvim 0.7 treesitter api
2022-04-18 17:38:37 -04:00
Micah Halter
af894203cf update nvim 0.7 treesitter api
Signed-off-by: Micah Halter <micah@balena.io>
2022-04-18 11:22:38 -04:00
Andy K. Massimino
7fd8806138 Fix lua lint 2022-02-17 22:18:36 -05:00
Andy K. Massimino
fce4ec19dc Update TS hl-info from upstream 2022-02-17 22:12:40 -05:00
Andy Massimino
d0c8f6f86d Merge pull request #210 from ajitid/feat/js-ts-scm-correct-inheritance
Reuse schema from JavaScript for TypeScript
2022-02-16 18:43:13 -05:00
ajit
fb730d5c6b feat: inherit typescript schema from javascript instead 2022-02-14 09:18:36 +05:30
Andy K. Massimino
71739b5422 Add basic TS typescript queries re #156 2022-02-13 15:56:33 -05:00
Andy K. Massimino
2acaf94271 Fix CI 2022-02-11 20:06:56 -05:00
Andy Massimino
0fd7055cc2 Merge pull request #208 from sainnhe/avoid-goto
Avoid goto logic in internal.lua
2022-02-03 20:49:38 -05:00
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