vim-go v1.26 Release Notes
Release Date: 2022-04-23 // over 2 years ago-
BACKWARDS INCOMPATIBILITIES:
๐ IMPROVEMENTS:
- โ Add mapping for formatting,
(go-fmt)
. [GH-3209] - โ Add
tr
snippet for"testing.T".Run
. [GH-3210] [GH-3220] - ๐ Use
go env GOBIN
to determineGOBIN
's value. [GH-3207] - List register in the debugger. [GH-3221]
- ๐ Install the latest release of tools that seem to be using tags to do releases instead of installing from their master/main branch. [GH-3227]
- ๐ฆ Expose error message when
gopls
cannot be found andg:go_echo_command_info
is set. [GH-3244] - ๐ Install all tools in module aware mode in preparation for Go 1.17 release. [GH-3226]
- Add
g:go_doc_balloon
to allow godoc to be displayed in hover balloons. [GH-3252] - ๐ Default to using
revive
in place ofgolint
. [GH-3248] [GH-3401] - ๐จ Teach
:GoDebugPrint
to show function call return values. [GH-3256] - Do not enable keyify unless in GOPATH. [GH-3095]
- ๐ Show LSP messages to users. [GH-3058]
- Check omnifunc's value before executing actions on CompletedDone event. [GH-3274]
- ๐ Highlight new form of build constraints. [GH-3292]
- ๐ฆ Teach
:GoDiagnostics
to handle package pattern arguments. [GH-3297] - Add
g:go_debug_subsitute_paths
to support debugging applications when the source is hosted in a local location that is different from where the binary was compiled. [GH-3301] - 0๏ธโฃ Wrap text in the fzf preview window by default. [GH-3310]
- Wait for up to five seconds when opening a connection to a remote debugger. [GH-3312]
- Install tools with
go install
instead ofgo get
. [GH-3317] [GH-3370] - โก๏ธ Update
:GoPlay
to usego.dev/play
instead ofplay.golang.org
. [GH-3331] [GH-3348] - Recurse local variables more deeply when debugging. [GH-3344]
- โ Add syntax elements for
any
andcomparable
types. [GH-3351] - โ Add syntax support for go.work files. [GH-3375]
- ๐ Show the current goroutine at the top of the list of goroutines when debugging. [GH-3379]
- โ Add
:GoModReload
and autocmd events to reload go.mod when it changes on disk and is open in a buffer. [GH-3387] [GH-3391] - โ Add syntax support for generics. [GH-3397]
- โ Remove invalid numeric literal highlighting. [GH-3404]
๐ BUG FIXES:
- ๐ Handle terminating parenthesis on hexadecimal values. [GH-3216]
- ๐ Fix applying text edits from gopls. [GH-3231]
- ๐ป Apply arguments to
:GoCoverageBrowser
. [GH-3240] - Fix
:GoFillStruct
wheng:go_fillstruct_mode
isgopls
. [GH-3279] - ๐ Fix example in
g:go_metalinter_enabled
documentation. [GH-3291] - ๐ Fix changing directories in older Vims. [GH-3299]
- Highlight the receive type when method declarations that omit the receiver identifier. [GH-3306]
- Do not highlight misspellings in import paths. [GH-3308] [GH-3321]
- ๐ Handle shell quoting when execing. [GH-3323]
- Do not automatically add directories from the module cache into the LSP workspace. [GH-3343]
- Resolve symlinks in autocmd events. [GH-3353]
- ๐ Fix
:GoRename
in Neovim so that it does not take 10 seconds to complete. [GH-3386] - ๐ Fix
:GoDebugConnect
argument handling. [GH-3400]
- โ Add mapping for formatting,
Previous changes from v1.25
-
BACKWARDS INCOMPATIBILITIES:
- Remove g:go_autodetect_gopath. [GH-3078]
๐ IMPROVEMENTS:
- ๐ง Clarify allowed values for
gopls
related configuration options. [GH-3016] [GH-3017] - Add
g:go_fillstruct_mode
to allow:GoFillStruct
to be satisfied by eitherfillstruct
or bygopls
. [GH-3018] - โ Add
:GoDebugTestFunc
to debug the test function surrounding the current cursor location. [GH-3011] - Implicitly add a workspace when a file from a module is opened. [GH-3028]
- โ Add support for using static check as the gometalinter. [GH-3036] [GH-3133]
- Add
g:go_debug_mappings
to allow the debug key mappings to be customized. [GH-3035] [GH-3143] - 0๏ธโฃ Use
gopls
as the default instead ofguru
to satisfy:GoImplements
. [GH-3034] - Deprecate g:go_diagnostics_enabled
and add
g:go_diagnostics_level` to allow more finely grained control of the handling of diagnostics messages. [GH-3050] [GH-3052] [GH-3119] - Add support for allowing
g:go_gopls_local
to specify different local imports values per workspace. [GH-3053] - ๐ Improve
:GoDecls
and:GoDeclsDir
display. [GH-3081] - Preserve existing window layout when debugging and
g:go_debug_windows
is empty. [GH-3068] - ๐ Show identifier in fzf's preview window with
:GoDecls
and:GoDeclsDir
. [GH-3083] - ๐ Use
gopls
for:GoCallers
. [GH-3088] [GH-3090] [GH-3141] [GH-3142] - โก๏ธ Update denite integration to work with python3.9. [GH-3097]
- โ Add syntax highlighting for go.sum files. [GH-3102]
- ๐ Change the default from metalinter to staticcheck. [GH-3126]
- Add
g:go_debug_preserve_layout
to prevent:GoDebug
and friends from closing windows. [GH-3125] - โ Add support for
fillstruct
's new-tags
flag. [GH-3156] - Display map key and slice elements more usefully in the local vars window in debug mode. [GH-3170]
- โ Add support for go.mod's
retract
directive. [GH-3166] - Do not execute disabled code actions. [GH-3155]
- โ Add
:GoDebugConnect
to support connecting to an instance of delve started outside of vim-go. [GH-3179] - 0๏ธโฃ Use gopls to adjust imports and formatting by default. [GH-2986]
- Set the filetype for .tmpl files to gohtmltmpl even if it's already been set. [GH-3146]
๐ BUG FIXES:
- โ Remove implications that terminal mode is only applied for Neovim. [GH-3010]
- ๐ Correct documentation to clearly show the default value for
g:go_gopls_options
. [GH-3019] - Allow truthy values for
g:go_gopls_gofumpt
. [GH-3017] [GH-3022] - ๐ Fix quickfix title for
:GoMetaLinter
. [GH-3040] - ๐ Change key mapping for (go-debug-halt) to F8 to resolve collision with key mapping for (go-debug-print). [GH-3047]
- ๐ Handle gopls v0.5.2 addition of a prefix on the expected code actions names. [GH-3077]
- โช Make sure all buffers' mappings are restored when debugging stops. [GH-3048]
- Return early when
g:go_referrers_modes
isgopls
andgopls
is disabled. [GH-3090] - ๐ Handle yet another error format produced by golangci-lint. [GH-3094]
- ๐ Handle additional ways that gopls can provide links for godoc. [GH-3112]
- Remove implication that
g:go_def_reuse_buffer
only applies to split variant of jumping to a definition. [GH-3128] - Organize imports correctly when
gopls
formatting usesgofumpt
. [GH-3154] - ๐ Rename all instances of an identifier when
g:go_rename_mode
isgopls
. [GH-3181] [GH-3182] - Terminate a case statement in the select snippet with a colon. [GH-3185]
- ๐ Fix syntax highlighting in template files. [GH-3188] [GH-3189]