Commit Graph

15 Commits

Author SHA1 Message Date
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
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
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
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-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
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
ray-x
1e190d6a0e init commit 2021-03-10 23:15:06 +11:00