Commit Graph

44 Commits

Author SHA1 Message Date
ray-x
32b4c162f0 gomvp support #176 2022-10-25 20:16:50 +11:00
ray-x
e9d1c6c021 issue #229 extra args to go 2022-10-20 13:02:45 +11:00
ray-x
d34868d2fa testrunner default 2022-10-03 20:20:36 +11:00
ray-x
5b33d782f3 GoTestSum and sidepanel 2022-10-01 14:53:27 +10:00
ray-x
28bcaa1f44 quick gen return #170 2022-08-23 19:31:13 +10:00
ray-x
02db327bc3 issue #195 update doc for GoDebug 2022-08-07 20:42:15 +10:00
ray-x
19af5a5546 doc updates 2022-08-05 10:08:05 +10:00
ray-x
9ea9ee2c4b issue #192 coverage sign priority 2022-08-05 10:02:35 +10:00
ray-x
3f2e7f49bd json to go struct 2022-08-04 23:30:52 +10:00
ray-x
c8d02a9d6a inlay hints #172 2022-07-20 09:27:59 +10:00
Mihail Stoykov
c655da712e
Fix tags in go.txt (#169) 2022-07-15 22:44:02 +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
29a23a31e3 issue #153 -count=x 2022-07-07 21:23:18 +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
a86e9d2a29 Feature: add go mock / mockgen 2022-07-06 08:28:29 +10:00
ray-x
a2d0bbee53 bugfix #153, update doc 2022-07-03 09:11:26 +10:00
ray-x
84ac01df53 Feature: show keybindings for debug session 2022-07-01 20:30:43 +10:00
ray-x
eae9af9c1d recommit fix for #145 due to merge failure 2022-06-30 12:41:20 +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
d3d278d58a doc update 2022-06-22 13:53:26 +10:00
ray-x
b3c6bde824 flags to load coverage file 2022-06-07 20:10:49 +10:00
ray-x
ad84a0806c update GoTest adding more flags 2022-05-31 00:04:52 +10:00
张海林
6c51c0a909
doc: clarify test_runner option (#129)
* doc: clarify test_runner option

* Update README.md

* Update go.txt

* Update go.lua

Co-authored-by: rayx <rayx.cn@gmail.com>
2022-05-27 12:39:11 +10:00
ray-x
eb4d380807 allow format all buffers with goimports 2022-05-26 15:07:14 +10:00
ray-x
051e8b2afa cheatsheet(cht.sh) supports in go.nvim 2022-05-25 14:36:34 +10:00
ray-x
52ccb2e690 GoImpl updates, allow no arguments and let treesitter do everything for you 2022-05-19 14:12:14 +10:00
ray-x
e3504bc50f allow gorun in float terminal 2022-05-17 11:34:35 +10:00
ray-x
669ad39639 update launch.json and readme.md for the new commands 2022-05-15 21:43:59 +10:00
ray-x
f187f10678 Update GoModxxx cmds 2022-05-15 14:09:07 +10:00
Aleš Brelih
6d2062c3d7
feat: verbose tests toggle (#123)
Co-authored-by: Ales Brelih <ales.brelih@3fs.si>
2022-05-08 20:44:13 +10:00
Aleš Brelih
ab864c4c17
feat: added command to close floating term (#119)
* feat: added command to close floating term

* feat: automatically close previous float term

* Update go.lua

remove auto complete

Co-authored-by: Ales Brelih <ales.brelih@3fs.si>
Co-authored-by: rayx <rayx.cn@gmail.com>
2022-05-02 08:47:45 +10:00
ray-x
7ca5ad805b allow lsp_keymaps to be a function 2022-04-20 21:24:07 +10:00
rayx
32f103258b
Gotest refactor (#102)
* issue #82 allow close terminal in current buffer

* update go test arguments

* auto complete args updates based on @Craig Rodgigues feedbacks

* update test arguments

* Return cursor to previous cursor position (#101)

`GoGet` and `GoMod` opens up a new split and move the cursor there.
If the cursor isn't moved back to the *.go buffer, `utils.restart`
will try to spawn gopls in the terminal split, which results in
gopls failed to restart properly.

* fix double close when end dap session

* add relFileDir in launch.json

* update sample go app

* fix: remove cover file (#107)

* fix: remove cover file

* fix: coverage notify message

* github action setup for go 1.18

* issue #109 config dap marker

* setup pipeline with go install

* add icons setup options in doc issue #35 issue #109

Co-authored-by: Mochammad Hanif R <etrnal70@gmail.com>
Co-authored-by: Nicolas Barbosa <ndevbarbosa@gmail.com>
2022-04-16 22:09:15 +10:00
ray-x
ed3dfb85b2 Breaking changes for GoDebug, deprecate old argument and using linux style command line arguments 2022-03-07 17:09:42 +11:00
ray-x
f5c029e5fa Update GoGet. if cursor current line is a valid pkg url, will auto fill it to go get argument 2022-02-09 15:33:19 +11:00
ray-x
edbd796ded Add GoStop command to stop the background task started with GoRun 2022-02-02 17:37:07 +11:00
ray-x
2b059afc54 GoGet 2022-02-02 15:49:54 +11:00
ray-x
e5ebbd9460 Add GoTest -c option, compile test package issue#76 2022-01-16 13:08:16 +11:00
ray-x
2869c5b8fc Add support for vscode launch.json. Allow launch debugger from config in .vscode/launch.json 2022-01-15 20:59:03 +11:00
Craig Rodrigues
60e0659d50
Set dap_debug_keymap to true by default (#73) 2022-01-12 09:35:42 +11:00
Craig Rodrigues
a54f5d452f
Put options in same order in README.md, go.txt, go.lua (#72) 2022-01-12 08:57:21 +11:00
Craig Rodrigues
eebe136396
Make lsp_on_attach nil by default (#62)
Clarify lsp_on_attach in the docs.
2021-12-22 10:51:20 +11:00
ray-x
45348a8c83 bugfix #54 quickfix position 2021-12-15 03:59:14 +11:00
ray-x
1aab3bcea0 add go.txt 2021-12-11 14:56:08 +11:00