vim-go v1.20 Release Notes
Release Date: 2019-04-22 // about 5 years ago-
๐ FEATURES:
- ๐ gopls support!
- use gopls for autocompletion by default in Vim8 and Neovim.
- use gopls for
:GoDef
by settingg:go_def_mode='gopls'
. - use gopls for
:GoInfo
by settingg:go_info_mode='gopls'
.
- โ Add support for golangci-lint.
- set
g:go_metalinter_command='golangci-lint'
to use golangci-lint instead of gometalinter.
- set
- ๐ New
:GoDefType
command to jump to a type definition from an instance of the type.
BACKWARDS INCOMPATABILITIES:
g:go_highlight_function_arguments
is renamed tog:go_highlight_function_parameters
[GH-2117]
๐ IMPROVEMENTS:
- Disable
g:go_gocode_propose_source
by default. [GH-2050] - Don't spam users when Vim is run with vi compatibility. [GH-2055]
- โ Add bang support to lint commands to allow them to be run without jumping to errors. [GH-2056]
- ๐ Use
go doc
for:GoDoc
instead ofgodoc
. [GH-2070] - Detach from and shutdown dlv correctly. [GH-2075]
- Do not require
'autowrite'
or'autowriteall'
to be set when using autocompletion in module mode. [GH-2091] - ๐ Fix use of
g:go_metalinter_command
and apply it even when autosaving. [GH-2101] - Report errors in quickfix when Delve fails to start (e.g. compiler errors). [GH-2111]
- ๐ Support
'undo_ftplugin'
, make most autocmds buffer-local, and only do the bare minimum based on file names alone. [GH-2108] - Write a message when
:GoInfo
can't display any results wheng:go_info_mode='gocode'
. [GH-2122] - Highlight fields followed by an operator when
g:go_highlight_fields
is set. [GH-1907] - Skip autosave actions when the buffer is not a readable file. [GH-2143]
- โ Run
godef
from the current buffer's directory to make sure it works with modules. [GH-2150] - โ Add a function,
go#tool#DescribeBalloon
, to show information in a balloon with'balloonexpr'
. (Vim8 only). [GH-1975] - โ Add initial support for
gopls
. [GH-2163]. - โ Add
:GoDefType
to jump to the type definition of the identifier under the cursor. [GH-2165] - ๐ Notify gopls about changes. [GH-2171]
- Respect
g:go_jump_to_error
when runninggometalinter
automatically on save. [GH-2176] - 0๏ธโฃ Use gopls for code completion by default in Vim8 and Neovim. [GH-2172]
- โ Add support for golangci-lint. [GH-2182]
- ๐ Show hover balloon using gopls instead of gocode. [GH-2202]
- Add a new option,
g:go_debug_log_output
, to control logging with the debugger. [GH-2203] - Do not jump to quickfix or location list window when bang is used for async jobs or linting. [GH-2205]
- ๐ฆ Tab complete package names for commands from vendor directories and in modules. [GH-2213]
- Add support for
gopls
tog:go_info_mode
. [GH-2224]
๐ BUG FIXES:
- ๐ Fix opening of non-existent file from
:GoDeclsDir
when the current directory is not the directory containing the current buffer. [GH-2048] - ๐ Fix jumping to an identifier with godef from a modified buffer. [GH-2054]
- ๐ Fix errors when
g:go_debug
containsdebugger-commands
. [GH-2075] - ๐ Fix errors from
:GoDebugStop
in Neovim. [GH-2075] - ๐ Fix
:GoSameIdsToggle
. [GH-2086] - Do not set fileencoding or fileformat options or populate from template when the buffer is not modifiable. [GH-2097]
- Do not clear buffer-local autocmds of other buffers. [GH-2109]
- Highlight return parameter types when g:go_highlight_function_arguments is set. [GH-2116]
- ๐ Fix lockup in Neovim when trying to run
:GoDebugTest
when there are no tests. [GH-2125] - Keep track of breakpoints correctly when buffer is edited after breakpoints are set. [GH-2126]
- ๐ Fix race conditions in
:GoDebugStop
. [GH-2127] - ๐ Fix jumping to module or package using godef. [GH-2141]
- ๐ Fix errors caused by redefining functions within functions. [GH-2189]
- ๐ Highlight pre-release and metadata in versions in go.mod. [GH-2192]
- ๐ Handle runtime panics from
:GoRun
when using Neovim's terminal. [GH-2209] - ๐ Fix adding tag option when a tag is added. [GH-2227]
- ๐ gopls support!