vim-go v1.21 Release Notes
Release Date: 2019-09-11 // over 4 years ago-
BACKWARDS INCOMPATABILITIES:
- ๐
g:go_metalinter_disabled
has been removed. [GH-2375]
๐ IMPROVEMENTS:
- Add a new option,
g:go_code_completion_enabled
, to control whether omnifunc is set. [GH-2229] - ๐ Use build tags with golangci-lint. [GH-2261]
- ๐ Allow debugging of packages outside of GOPATH without a go.mod file. [GH-2269]
- โ Show which example failed when Example tests fail [GH-2277]
- ๐ Show function signature and return types in preview window when autocompleting functions and methods. [GH-2289]
- ๐ Improve the user experience when using null modules. [GH-2300]
- ๐ง Modify
:GoReportGitHubIssue
to include vim-go configuration values [GH-2323] - Respect
g:go_info_mode='gopls'
in go#complete#GetInfo. [GH-2313] - ๐ Allow
:GoLint
,:GoErrCheck
, and:GoDebug
to work in null modules. [GH-2335] - Change default value for
g:go_info_mode
andg:go_def_mode
to'gopls'
. [GH-2329] - Add a new option,
g:go_doc_popup_window
to optionally use a popup window for godoc in Vim 8.1.1513 and later. [GH-2347] - โ Add
:GoAddWorkspace
function to support multiple workspaces with gopls. [GH-2356] - ๐ฆ Install gopls from its stable package. [GH-2360]
- Disambiguate progress message when initializing gopls. [GH-2369]
- Calculate LSP position correctly when on a line that contains multi-byte characters before the position. [GH-2389]
- Calculate Vim position correctly from LSP text position. [GH-2395]
- ๐ Use the statusline to display gopls initialization status messages and only
echo the statuses when
g:go_echo_command_info
is set. [GH-2422] - ๐ Send configuration to gopls so that build tags will be considered and hover content won't have documentation. [GH-2429]
- Add a new option,
g:go_term_close_on_exit
, to control whether jobs run in a terminal window will close the terminal window when the job exits. [GH-2409] - Allow
g:go_template_file
andg:go_template_test_files
to reside outside of vim-go's template directory. [GH-2434] - โ Add a new command,
:GoLSPDebugBrowser
, to open a browser to gopls debugging view. [GH-2436] - โก๏ธ Restart gopls automatically when it is updated via
:GoUpdateBinaries
. [GH-2453] - Reset
'more'
while installing binaries to avoid unnecessary more prompts. [GH-2457] - Highlight
%w
as a format specifier (for Go 1.13). [GH-2433] - ๐ Handle changes to Go 1.13's go vet output that gometalinter isn't expecting. [GH-2475]
- ๐ Make
golangci-lint
the default value forg:go_metalinter_command
. [GH-2478] - ๐ Parse compiler errors from Go 1.13
go vet
correctly. [GH-2485]
๐ BUG FIXES:
- display info about function and function types whose parameters are
interface{}
without truncating the function signature. [GH-2244] - install tools that require GOPATH mode when in module mode. [GH-2253]
- Detect GOPATH when starting
gopls
[GH-2255] - ๐ Handle
gopls
responses in the same window from which the respective request originated. [GH-2266] - ๐ Show completion matches from gocode. [GH-2267]
- ๐ Show the completion preview window. [GH-2268]
- ๐ Set the anchor for method documentation correctly. [GH-2276]
- Respect the LSP information for determining where candidate matches start. [GH-2291]
- โช Restore environment variables with backslashes correctly. [GH-2292]
- Modify handling of gopls output for
:GoInfo
to ensure the value will be displayed. [GH-2311] - ๐ Run
:GoLint
successfully in null modules. [GH-2318] - Ensure actions on save work in new buffers that have not yet been persisted to disk. [GH-2319]
- โช Restore population of information in
:GoReportGitHubIssue
. [GH-2312] - Do not jump back to the originating window when jumping to definitions with
g:go_def_mode='gopls'
. [GH-2327] - ๐ Fix getting information about a valid identifier for which gopls returns no
information (e.g. calling
:GoInfo
on a package identifier). [GH-2339] - ๐ Fix tab completion of package names on the cmdline in null modules. [GH-2342]
- Display identifier info correctly when the identifier has no godoc. [GH-2373]
- ๐ Fix false positives when saving a buffer and
g:go_metalinter_command
isgolangci-lint
. [GH-2367] - ๐ Fix
:GoDebugRestart
. [GH-2390] - โ Do not execute tests twice in terminal mode. [GH-2397]
- Do not open a new buffer in Neovim when there are compilation errors and terminal mode is enabled. [GH-2401]
- ๐ Fix error due to typo in implementation of
:GoAddWorkspace
. [GH-2415] - Do not format the file automatically when
g:go_format_autosave
is set and the file being written is not the current file. [GH-2442] - ๐ Fix
go-debug-stepout
mapping. [GH-2464] - ๐ท Handle paths with spaces correctly when executing jobs. [GH-2472]
- Remove a space in the default value for
g:go_debug_log_output
, so that Delve will start on Windows. [GH-2480]
- ๐