Commit Graph

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