Commit Graph

729 Commits

Author SHA1 Message Date
ray-x
6bdba9e1f3 revert removing fillstruct as some gopls user saw issues 2024-03-22 23:01:37 +11:00
ray-x
a3ce5016f5 remove typecheck from golanci-lint as gopls should cover it. also when run in single file mode it has lots of false positive 2024-03-22 13:02:36 +11:00
ray-x
49311bcf17 github actions 2024-03-21 21:17:52 +11:00
ray-x
31c3ebe500 github action 2024-03-21 21:11:35 +11:00
ray-x
f5717d79a8 bugfix GoMock does not respect '-d' setting 2024-03-21 12:53:47 +11:00
ray-x
3ff58b0741 gopls noSemanticString option 2024-03-20 12:34:29 +11:00
ray-x
72932a7799 update gopls setting and update README 2024-03-20 10:28:39 +11:00
ray-x
dadedaeda2 cleanup after format save logic 2024-03-19 18:27:29 +11:00
ray-x
29a967457a backward compatibility for goimport <- goimports 2024-03-19 15:08:51 +11:00
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
9ac3e6faa3 make gofumpt default formatter (replacing golines) 2024-03-14 23:44:00 +11:00
ray-x
3c497f6e5e import save and auto format 2024-03-14 23:12:52 +11:00
ray-x
c7b4b1ae10 gopls notification and doc updates 2024-03-13 12:10:08 +11:00
ray-x
9dfc750472 gopls.change_signature 2024-03-13 11:30:20 +11:00
ray-x
737c44f5b4 force format after import 2024-03-12 21:10:31 +11:00
ray-x
d217a74fa8 move fillstruct to gopls only 2024-03-10 18:59:40 +11:00
ray-x
420987848b fillstruct 2024-03-09 19:18:43 +11:00
ray-x
df6a2a6d75 Merge branch 'master' of github.com:ray-x/go.nvim 2024-03-09 19:14:36 +11:00
ray-x
6943c99599 remove reftool/fillstruct. use gopls fillstruct 2024-03-09 19:12:48 +11:00
Mike Cheng
00f154ccd2
fix: prefix -run in GoTestXXX with '-test' (#435)
When providing custom arguments (`:GoTest-n -a -test.timeout=5s`), the
resultant command will be:

`go test <package> -args -test.timeout=5s -run=<exp>`

Since `-run` is after `-args`, the `-test.` prefix is required to be
properly detected. According to `go help testflags`, all test commands
are recognized with this prefix.
2024-03-06 10:59:10 +11:00
ray-x
0bc1b1d4f0 test spec 2024-03-02 23:18:16 +11:00
ray-x
7a52a370ab It is a fix for the plugin working together with cmp-commandline 2024-02-29 12:58:19 +11:00
ray-x
25d3060f61 using single quote for commands send to shell. It is more special setting for fish 2024-02-29 10:40:46 +11:00
ray-x
1bf7f88c68 Merge branch 'master' of github.com:ray-x/go.nvim 2024-02-29 09:55:12 +11:00
ray-x
4683835fbd mockgen updates 2024-02-29 09:55:04 +11:00
rayx
d748e79011
Gh action fix (#427)
* code lens updates

* gopls spec

* vim.wait

* disable codelens in test
2024-02-10 13:17:49 +11:00
Viorel Craescu
9ccb57766e
go sub tests names needs to be regex quoted (#420)
* go sub tests names needs to be regex quoted

* fix lua tests

* create test scenario
2024-02-09 20:28:31 +11:00
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
bc391ff4ba inlay_hint toggle improvement, luasnip timestamp 2023-12-22 01:46:35 +11:00
ray-x
13a1044fc6 Issue #408 GoImplements 2023-12-15 09:45:04 +11:00
ray-x
ae6a1025f9 README updates; log cleanup 2023-12-02 19:33:56 +11:00
ray-x
7b7c20029a Adding inlayhint default settings so it will be easier to override 2023-12-01 19:08:36 +11:00
ray-x
e0528b5868 fix issue #402 2023-11-28 22:16:09 +11:00
ray-x
9cf2a3f846 issue #403 goenv failed for some shell/os 2023-11-28 17:50:33 +11:00
ray-x
9e3250e724 fix: null_ls failed to refresh after gotest was resolved 2023-11-28 17:39:33 +11:00
ray-x
ad5db6a907 disable inlay in diff mode 2023-11-24 21:10:04 +11:00
ray-x
da48e6155d Merge branch 'master' of github.com:ray-x/go.nvim 2023-11-21 20:03:58 +11:00
weirdgiraffe
55c496421f
fixup: check for env variables based on go env (#399)
* fixup: check for env variables based on go env

not all golang env specific variables are
injected into vim.env, so check their presence
based on go env instead

* prevent emtpy lines at the end of go build

* fixup: treat empty values as nil
2023-11-21 19:57:57 +11:00
ray-x
6008a754ef log file fs_write updates 2023-11-20 01:31:54 +11:00
ray-x
e749ff85ff might releated to issue #382 but it is different approch 2023-11-15 17:34:03 +11:00
ray-x
15bf9aea88 issue #384 a possible fix
As I do not have access to the error log, this is more a try my best guess and fix
2023-11-14 21:32:14 +11:00
ray-x
dbb712ec9f golden file updates 2023-11-14 21:23:34 +11:00
ray-x
a78d5e1d81 go.nvim assert as https://github.com/neovim/neovim/pull/25512 been integrated into nightly
issue #398
2023-11-14 20:58:19 +11:00
ray-x
f9672fd446 gonew with template URL; update go work
cleanup sandbox
2023-11-13 18:01:04 +11:00
ray-x
38f6402fa5 Go Work 2023-11-09 22:05:14 +11:00
ray-x
9329383d6d document tidy 2023-11-09 21:51:43 +11:00
ray-x
a1a89f5040 checking windows os: add mingw 2023-11-08 17:17:07 +11:00
ray-x
7b818ad49d improvements for windows cmd line 2023-11-08 17:03:33 +11:00