v0.0.33
The main new feature in this release is GOVIMGoTest, which allows you to run tests based on the cursor position. See https://github.com/govim/govim/pull/974/commits/ed5f0e30574626634f9056fa8d0b4df83a89fa8e for more details.
You can also configure gopls to use gofumpt as the formatter. See https://github.com/govim/govim/pull/1005/commits/dac6f9c4621a9d88247c0236c898c02c61f00d94 for more details.
In Go 1.16, cmd/go now defaults to -mod=readonly for build commands. This means that go build, go test, go list and other build commands will not run if changes are required to go.{mod,sum} in order for the build to succeed. You first need to run go mod tidy or an equivalent command to add the relevant requirements to go.{mod,sum}. gopls has followed suit by making the addition of requirements to a go.{mod,sum} an explicit step. For some people this will be a welcome change. For others this might be something of a chore, for example when adding an import via unimported completions it can be argued the selection involves specifying a module and hence requiring a further manual step to add the module requirement is unnecessary. Whether go.{mod,sum} changes are allowed is now controlled by ExperimentalAllowModfileModifications. To ease the transition this defaults to "on". We will also be raising an issue with the gopls team to discuss how to phase out use of this option, specifically in the context of operations that should arguably not require an additional module requirement step (the case of unimported completions is the most obvious).
Thanks to @leitzler, @bbrodriges and @mvdan for contributing towards this release.
Breaking changes
None.
Major enhancements
- cmd/govim: add ExperimentalAllowModfileModifications (#1027) 7bb65e2a
- cmd/govim: add support for gofumpt as formatter (#1005) 57ae0ca1
- cmd/govim: add "go test" popup highlighting (#997) f3f5b7fc
- cmd/govim: add support for testing via gopls GOVIMGoTest (#974) 67804fee
gopls changes
- deps: update x/tools and gopls to 842a9283 (#1031) 9b702de6
- deps: update x/tools and gopls to db4c57db (#1021) a31027dd
- deps: update x/tools and gopls to fe37c9e1 (#1018) e320576f
- deps: update x/tools and gopls to 7339b0642069 (#1014) 40cdc63f
- deps: update x/tools and gopls to ae774e97 (#1009) fbc47f7c
- deps: update x/tools and gopls to fa10ef0b (#1006) 563f0b21
- deps: update x/tools and gopls to 368bee87 (#1003) 0d0e56dd
- deps: update x/tools and gopls to 65435275 (#1002) 2c941ee6
- Revert "deps: update x/tools & gopls to 299f270d (#993)" (#994) 0840922b
- deps: update x/tools & gopls to 299f270d (#993) 41bd4d07
- deps: update x/tools and gopls to 598b068a (#989) 124bb907
- deps: update x/tools and gopls to 5794f8bd7a57 (#987) 1b85ff51
- deps: update x/tools and gopls to f46e4245 (#985) 5ecd0287
Major bug fixes
None
Other (including bug fixes)
- cmd/govim: populate go.sum files for tests that use non-std packages (#1030) aad6894a
- ci: add go1.16rc1 to the build matrix (#1024) 85542c15
- cmd/govim: remember previous position before GOVIMMotion call (#1022) 5e650499
- README: minor language tweaks (#1010) 245cb1ac
- cmd/govim: fix panic when using custom hover opts "col" / "line" (#1013) 0bf3c9f8
- Support "goimports-gofmt" value for FormatOnSave (#1011) 4c1364fa
- cmd/govim: add new config that changes how last progress is opened (#995) 8761a606
- ci: use explicit version of Ubuntu on GitHub actions for now (#990) 89adc6c8
- ci: drop use of set-env and add-path (#986) 1203460e