vim-go v1.16 Release Notes

Release Date: 2017-12-29 // over 6 years ago
  • ๐Ÿ”‹ FEATURES:

    • Add g:go_doc_url to change the godoc server from godoc.org to a custom private instance. Currently only godoc -http instances are supported. [GH-1957].
    • โœ… New setting g:go_test_prepend_name (off by default) to add the failing test name to the output of :GoTest [GH-1578].
    • ๐Ÿ‘Œ Support denite.vim for :GoDecls[Dir] [GH-1604].

    ๐Ÿ‘Œ IMPROVEMENTS:

    • :GoRename is a bit smarter when automatically pre-filling values, and what gets pre-filled can be configured with g:go_gorename_prefill option. In addition :GoRename <Tab> now lists some common options. [GH-1465].
    • ๐Ÿ— Add support for g:go_build_tags to the :GoTest family of functions. [GH-1562].
    • ๐Ÿ‘• Pass --tests to gometalinter when autosaving and when a custom gometalinter command has not been set. [GH-1563].
    • Do not spam messages when command is run in a directory that does not exist. [GH-1527].
    • ๐Ÿ”€ Run syntax sync fromstart after :GoFmt; this should make syntax highlighting break slightly less often after formatting code [GH-1582].
    • :GoDescribe doesn't require a scope anymore [GH-1596].
    • โž• Add some standard snippets for vim-minisnip [GH-1589].
    • g:go_snippet_engine now defaults to automatic to use the first installed snippet engine it can find. [GH-1589].
    • ๐Ÿ‘‰ Make sure temporary files created for :GoFmt end with .go suffix as this is required by some Go formatting tools [GH-1601].

    ๐Ÿ› BUG FIXES:

    • ๐Ÿ›  Fix compatibility with Vim version before 7.4.1546 [GH-1498].
    • Don't resize godoc window if it's already visible [GH-1488].
    • โœ… :GoTestCompile produces a test binary again. The test binary will be written to a temporary directory to avoid polluting the user's working directory. [GH-1519]
    • ๐Ÿ›  Fix incorrect :GoSameIdsToggle behavior when there were match groups present, but none were goSameId. [GH-1538]
    • ๐Ÿ›  Fix gpl snippet for UltiSnips. [GH-1535]
    • ๐Ÿ›  Fix test output processing to correctly handle panics and log statements. [GH-1513]
    • :GoImpl tab-completion would sometimes stop working [GH-1581].
    • Add g:go_highlight_function_arguments to highlight function arguments. [GH-1587].
    • ๐Ÿ›  Fix installation of gocode on MS-Windows. [GH-1606].
    • ๐Ÿ›  Fix template creation for files in directories that don't exist yet. [GH-1618].
    • ๐Ÿ›  Fix behavior of terminal windows and resize terminal windows correctly for all valid g:go_term_mode values. [GH-1611].

    BACKWARDS INCOMPATIBILITIES:

    • โš  Display a warning for Vim versions older than 7.4.1689. Older versions may still work, but are not supported. You can use let g:go_version_warning = 0 to disable the warning. [GH-1524].
    • g:go_autodetect_gopath is disabled by default, as support for vendor has been in Go for a while. Also change the implementation for g:go_autodetect_gopath; instead of manually setting it before every command it will now be set with the BufEnter event, and reset with the BufLeave event. This means that $GOPATH will be changed for all commands run from Vim. [GH-1461] and [GH-1525].
    • โšก๏ธ Update :GoFillStruct to check the current line (vs. the exact cursor position) for a struct literal to fill. To support this, fillstruct made backwards imcompatible changes. [GH-1607].