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 ago.mod
file has been opened and starts with the linemodule
- New :GoModFmt command that formats the
go.mod
file - Auto format on save feature for
:GoModFmt
, enabled automatically. Can be toggled of with the settingg:go_mod_fmt_autosave
or with the command:GoModFmtAutoSaveToggle
[GH-1931]
- Syntax highlighting for the
๐ 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
wheng: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
withg: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 theIdentifiers
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
wheng:go_info_mode
isgocode
[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:
- ๐ go.mod file support! This is the first feature for upcoming Go modules
support. The followings are added: