vim-go v1.25 Release Notes
Release Date: 2021-04-18 // over 3 years ago-
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]