Commit Graph

51 Commits

Author SHA1 Message Date
ray-x
096f656920 stylua 2024-02-02 20:16:49 +11:00
Allen Horine
41c126718a
Updates to treesitter queries to support upstream changes (#425)
* Adjusted local.scm queries to fix crashes when using treesitter post-v0.9.2

* Accounted for 'local' subtable in treesitter matches when querying locals
2024-02-02 20:00:53 +11:00
ray-x
24d2fa373d issue #411 update TS struct definition 2023-12-27 17:25:09 +11:00
ray-x
ae6a1025f9 README updates; log cleanup 2023-12-02 19:33:56 +11:00
thuan1412
54387e506e
improve GoTestSubCase command (#385)
* save code

* it works

* update tbl case query

* fix file diff

* update tests

---------

Co-authored-by: Thuấn Đỗ Hoàng <thuan.dh@teko.com>
2023-10-03 10:51:31 +11:00
ray-x
7302dc4a20 ts api updates issue #319 2023-04-04 21:55:20 +10:00
ray-x
09ef69a363 neovim 0.9 TS query API 2023-04-04 10:26:22 +10:00
ray-x
c0b676f9cb issue #306 auto complete local struct/interface 2023-03-03 20:43:47 +11:00
ray-x
750b5e5603 issue #298 extra debug log info 2023-02-21 22:15:23 +11:00
xiwang
11b5661e6c
fix: rename ts_utils.get_node_range -> vim.treesitter.get_node_range (#298) 2023-02-21 22:12:25 +11:00
ray-x
4f3d09f0a3 use vim.log.levels instead of vim.lsp.log_levels 2023-02-16 07:37:10 +11:00
ray-x
c74af231c7 treesitter cache 2023-01-28 17:08:09 +11:00
ray-x
b9d9d6ad91 timing 2023-01-28 12:35:45 +11:00
ray-x
c1817f643c cache the ts nodes based on file time; null_ls timeout 2023-01-28 00:41:56 +11:00
ray-x
f33866ed00 Feature: run & debug a subtest inside table driven test cases 2023-01-11 14:53:05 +11:00
ray-x
32b4c162f0 gomvp support #176 2022-10-25 20:16:50 +11:00
ray-x
28bcaa1f44 quick gen return #170 2022-08-23 19:31:13 +10:00
ray-x
ce73ef43f0 cleanup ts logs; utils get build tags renaming 2022-08-06 12:54:32 +10:00
rayx
0e8cc90e30
Bugfix #160 (#167)
* snips

* update ts node spec format

* luasnip up and running

* bugfix alternate file

* Bring in more snippets

* updates for mockery 2.11

* snips for http handler and more

* update doc

* bench test

* for snips

* update treesitter query and api

* refact get_xxx_at_cursor

* update test spec

* update row to vim range

* update col number

* remove comments

* merge conflicts
2022-07-12 23:11:46 +10:00
rayx
104b832ee4
Luasnip (#165)
First commit for luasnip
Most of the snip code is from this repo shark
and TJ's neovim setup config_manager
and ziontee113

* add luasnip for go

* move command out to a dedicated function

* update ts node spec format

* bugfix alternate file

* Bring in more snippets

* updates for mockery 2.11

* snips for http handler and more

* update doc

* bench test
2022-07-11 23:32:06 +10:00
ray-x
c7fa2fe5fc tuning treesitter type def 2022-07-09 22:03:17 +10:00
ray-x
607ed738e5 improve treesitter query 2022-07-09 15:54:43 +10:00
ray-x
d1384cf2c0 revert changes break github actions 2022-07-08 22:02:58 +10:00
ray-x
ab8a075aa4 add efm only mode for testing when floating term is off 2022-07-08 02:34:50 +10:00
ray-x
fcc473b1ec GoImpl autocomplete from treesitter symbols 2022-07-08 01:27:30 +10:00
ray-x
300836a9cb go impl: allow omit interface and use treesitter to find a interface name and package name 2022-07-07 03:57:26 +10:00
ray-x
31624e1365 treesitter node for struct and type 2022-07-07 03:12:24 +10:00
ray-x
8021f2a484 fix test automation 2022-07-06 15:06:16 +10:00
ray-x
e84d3ab545 improve #155 allow GoImpl fallback if struct type def not found 2022-07-06 08:58:17 +10:00
rayx
5504f55b4f
[Feature]Package info side panel (#140)
New feature.
It shows all public symbols inside a go package with a side panel.

Also refer https://github.com/golang/go/issues/37237 for some workaround

* add side_panel for go package

* Add command GoPkgInfo

* multi lines hint

* allow refresh when buffer write happed

* remove node of receiver

* update treesitter queries for better panel display

* variadic args
2022-06-27 08:12:49 +10:00
ray-x
099790c988 go lint 2022-06-02 00:38:58 +10:00
ray-x
ad84a0806c update GoTest adding more flags 2022-05-31 00:04:52 +10:00
ray-x
86720cae95 update ts keybindings 2022-05-12 00:59:21 +10:00
ray-x
5d53132e52 updates for 0.5.1 2022-04-19 00:51:12 +10:00
ray-x
72e8a82ebd neovim 0.5.x treesitter 2022-04-19 00:46:54 +10:00
ray-x
9b9744a341 bug fix for neovim 0.6.1 2022-04-19 00:38:13 +10:00
ray-x
7320a536d7 update ts nodes 2022-04-19 00:28:13 +10:00
ray-x
b71f814e20 update lint 2022-04-19 00:13:51 +10:00
ray-x
df512d695f issue #94 GoImport autocomplete 2022-04-18 22:33:02 +10:00
ray.xu
50a9fe57ec textobject breaking changes https://github.com/nvim-treesitter/nvim-treesitter-textobjects/issues/169 2022-01-20 08:39:05 +11:00
Craig Rodrigues
483b56f4a2
Replace print() with vim.notify() (#64) 2021-12-22 14:34:10 +11:00
ray-x
1aab3bcea0 add go.txt 2021-12-11 14:56:08 +11:00
ray-x
6574dd2e6b add textobject default setup, doc updates 2021-12-11 14:44:15 +11:00
ray-x
f59422008a Add warn messages 2021-11-17 09:22:16 +11:00
ray-x
54dea272d1 #31 expose bufnr to ts APIs 2021-09-19 09:58:04 +10:00
ray-x
401e08e2b4 improve error message 2021-09-02 16:26:07 +10:00
ray-x
a093d2420b cursor range col/row calculate 2021-07-17 01:58:44 +10:00
ray-x
7b285a3600 Add gorename 2021-04-21 21:11:44 +10:00
ray-x
abbc421aee update treesitter syntax 2021-04-19 16:09:39 +10:00
ray-x
f6561e7807 update treesitter syntax 2021-03-12 13:54:08 +11:00