vim-go v1.19 Release Notes

Release Date: 2018-11-04 // over 5 years ago
  • ๐Ÿ”‹ FEATURES:

    • ๐Ÿ‘ go.mod file support! This is the first feature for upcoming Go modules support. The followings are added:
      • Syntax highlighting for the go.mod file.
      • A new gomod filetype is set if a go.mod file has been opened and starts with the line module
      • New :GoModFmt command that formats the go.mod file
      • Auto format on save feature for :GoModFmt, enabled automatically. Can be toggled of with the setting g:go_mod_fmt_autosave or with the command: GoModFmtAutoSaveToggle [GH-1931]

    ๐Ÿ‘Œ IMPROVEMENTS:

    • ๐Ÿ‘ท Unify async job handling for Vim8 and Neovim. [GH-1864]
    • Document Vim and Neovim requirements in README.md and help file. [GH-1889]
    • Highlight context.Context when g:go_highlight_extra_types is set. [GH-1903]
    • ๐Ÿ‘• Run gometalinter asynchronously in Neovim. [GH-1901]
    • โš™ Run gorename asynchronously in Vim8 and Neovim. [GH-1894]
    • Install keyify from its canonical import path. [GH-1924]
    • โšก๏ธ Update the tested version of Neovim to v0.3.1. [GH-1923]
    • โš™ Run autocompletion asynchronously in Vim8 and Neovim. [GH-1926]
    • Show statusline update when running :GoInfo with g:go_info_mode='gocode'. [GH-1937]
    • โšก๏ธ Do not update statusline when highlighting sameids or showing type info via an autocmd. [GH-1937]
    • Do not indent within a raw string literal. [GH-1858]
    • Highlight Go's predeclared function identifiers (the functions in builtins) using keyword groups and highlight them using the Identifiers group. [GH-1939]
    • โž• Add a new FAQ entry to instruct users how to modify the vim-go highlight groups. [GH-1939]
    • ๐Ÿ‘Œ Improve use of statusline and progress messages. [GH-1948]
    • โž• Add tt snippet to create a table test boilerplate (see https://github.com/golang/go/wiki/TableDrivenTests for more information on how to use a table driven test). [GH-1956]
    • โž• Add <Plug>(go-decls) and <Plug>(go-decls-dir) mappings. [GH-1964]
    • โœ… Handle go1.11 test output. [GH-1978]
    • Internal: install tools by their custom names [GH-1984]
    • ๐Ÿ‘Œ Support the go-debugger features in Neovim. [GH-2007]
    • color the statusline for termguicolors and Neovim. [GH-2014]
    • โž• add an option to disable highlighting of breakpoints and the current line when debugging. [GH-2025]
    • โšก๏ธ Update autocompletion to work with Go modules. [GH-1988]
    • Add an option to search $GOPATH/bin or $GOBIN after $PATH. [GH-2041]

    ๐Ÿ› BUG FIXES:

    • ๐Ÿ›  Fix :GoRun % on Windows. [GH-1900]
    • ๐Ÿ›  Fix go#complete#GetInfo() to return a description of the identifier. [GH-1905]
    • โช Restore support for running tests in the Neovim terminal. [GH-1895]
    • Fix :GoInfo when g:go_info_mode is gocode [GH-1915]
    • ๐Ÿ›  Fix highlighting of pointer type in var blocks. [GH-1794]
    • ๐Ÿ›  Fix :GoImport when adding to an empty import block (i.eimport ()) [GH-1938]
    • โš™ Run shell commands with shellcmdflag set to -c. [GH-2006]
    • ๐ŸŒฒ Use the correct log output option for delve. [GH-1992]
    • ๐Ÿ Pass empty arguments correctly in async jobs on Windows. [GH-2011]
    • Don't close godoc scratch window when using arrow keys. [GH-2021]

    BACKWARDS INCOMPATIBILITIES:

    • โฌ†๏ธ Bump minimum required version of Vim to 7.4.2009. [GH-1899]
    • Switch gocode to github.com/mdempsky/gocode. Several gocode options have been removed and a new one has been added. [GH-1853]