Commit Graph

62 Commits

Author SHA1 Message Date
ray-x
fe8196f9d1 [goimport->goimports] Enduring the frustration of a longstanding typo, I've finally resolved to correct it. The change updates "goimport" to "goimport," including all related documentation and tests.
Additionally, I've set gopls as the default tool for both gofmt and goimports. This integration will be quicker than executing a separate command in the background and analyzing its output.
2024-03-19 13:15:58 +11:00
ray-x
13a1044fc6 Issue #408 GoImplements 2023-12-15 09:45:04 +11:00
Itamar Lencovsky
47dd8f4f88
rename the spacing key for the diagnostic virtual text to match the spec (#395) 2023-11-03 18:40:08 +11:00
ray-x
0a508516f1 breaking: issue #375 diagnostics.hdlr=false by default as complains about the qickfix when file saved \n the feature need to turn on manually 2023-10-13 23:04:19 +11:00
aceforeverd
6550ddf5ce
fix(ui): replace obsolete nerd fonts from ui (#357)
nerdfont >= 3.0.0 dropped class name `nf-mdi-*`, replacing with new
class name `nf-md-*`.
The new class name exists since nerdfont 2.3.0 so user with nerdfont >=
2.3.0 installed should be fine.
Refer https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.0.0
2023-07-07 00:01:19 -07:00
qasimwarraich
97b76f3188
change default lsp_diag_virtual_text prefix to nvim default (#353) 2023-06-21 04:42:03 -07:00
Krystian Kulgawczuk
8a0498ee48
New global variable for vertical cursor shift on GoIfErr (#347)
New variable will allow to customize exactly where cursor will end
up and allow user to set this exactly how they wish.

This change is backwards compatible as the default is the same
as was the hardcoded value.

Signed-off-by: Krystian Kulgawczuk <29754364+krystian-kulgawczuk@users.noreply.github.com>
2023-05-31 07:19:21 -07:00
Manuel
711b3b84cf
fix(doc): add missing parameter documentation (#337)
Parameter `-p` was not documented for `:GoCoverage`
2023-05-24 08:35:54 +10:00
ray-x
55fe49fcaf issue #313 new file with template file 2023-03-14 23:01:56 +11:00
ray-x
063bf059e3 [Feat] % to expand to current file in cmdline 2023-03-12 23:34:41 +11:00
Oliver
c11b8b50f3
Fix typo in go.txt (#294)
s/pakcage/package/
2023-02-20 09:08:20 +11:00
Lingnan Liu
44e135565e
bugfix: Delete doc/tags (#283) 2023-02-01 08:35:35 +11:00
ray-x
13f5e15fd7 issue #273 mockgen install failure 2023-01-20 21:49:24 +11:00
ray-x
8a959ec37b go-enum support 🎄🎆 2023-01-03 23:23:35 +11:00
ray-x
5e980b00c7 add new command: govulncheck 🇦🇷 a🇭🇷 2022-12-14 08:39:09 +11:00
ray-x
12d262b99d update gotestsum info in readme and vim doc 🎄 2022-12-13 11:20:48 +11:00
ray-x
c61d2f447b verbose mode in gotest no longer default, use '-v' instead 🇯🇵 2022-12-06 02:08:45 +11:00
ray-x
02943e5316 gomodifytags options 2022-11-27 17:48:43 +11:00
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