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 setting g:go_def_mode='gopls'.
      • use gopls for :GoInfo by setting g:go_info_mode='gopls'.
    • โž• Add support for golangci-lint.
      • set g:go_metalinter_command='golangci-lint' to use golangci-lint instead of gometalinter.
    • ๐Ÿ†• New :GoDefType command to jump to a type definition from an instance of the type.

    BACKWARDS INCOMPATABILITIES:

    • g:go_highlight_function_arguments is renamed to g: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 of godoc. [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 when g: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 running gometalinter 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 to g: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 contains debugger-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]