vim-go v1.12 Release Notes
Release Date: 2017-03-29 // about 7 years ago-
๐ FEATURES:
- ๐ New
:GoAddTags
and:GoRemoveTags
command based on the tool gomodifytags. This fixes many old bugs that were due prior regexp based implementation. For the usage please read the docs and checkout the demo at: https://github.com/fatih/vim-go/pull/1204 [GH-1204] - โ Add new
errl
snippet that expands to [GH-1185]:
if err != nil { log.Fatal(err) }
- ๐ New
:GoBuildTags
command to change build tags for tools such asguru
,gorename
, etc ... There is also a new setting calledg:go_build_tags
[GH-1232]
๐ IMPROVEMENTS:
- vim-go works now even if GOPATH is not set (starting with Go 1.8) [GH-1248]
- ๐ Lowercase
<Leader>
in mappings examples for consistent documentation across the README [GH-1192] - All of files should be written in utf-8 if the file will be passed to external command. [GH-1184]
:GoAddTags
is now able to add options to existing tags with the syntax:GoAddTags key,option
, i.e::GoAddTags json,omitempty
[GH-985]- Document 'noshowmode' requirement for echo_go_info [GH-1197]
- ๐ Improve godoc view for vertical splits [GH-1195]
- ๐ Set GOPATH for both possible go guru execution paths (sync and async) [GH-1193]
- ๐ Improve docs for :GoDef usage [GH-1242]
- Highlight trimming syntax for Go templates [GH-1235]
๐ BUG FIXES:
- Honor
g:go_echo_command_info
when dispatching builds in neovim [GH-1176] - ๐ Fix
:GoBuild
error in neovim due to invalid jobcontrol handler function signatures (s:on_stdout
,s:on_stderr
)[GH-1176] - โก๏ธ Update statusline before and after
go#jobcontrol#Spawn
command is executed [GH-1176] - Correctly report the value of the 'g:go_guru_tags' variable [GH-1177]
- Ensure no trailing
:
exist in GOPATH detection if initial GOPATH is not set [GH-1194] - ๐ Fix
:GoAddTags
to allow modifying existing comments [GH-984] - ๐ Fix
:GoAddTags
to work with nested structs [GH-990] - ๐ Fix
:GoAddTags
adding tags twice for existing tags [GH-1064] - ๐ Fix
:GoAddTags
not working for fields of typesinterface{}
[GH-1091] - ๐ Fix
:GoAddTags
not working for fields with one line comments [GH-1181] - ๐ Fix
:GoAddTags
not working if any field comment would contain{}
[GH-1189] - Respect go_fmt_options when running goimports [GH-1211]
- Set the filename in the location-list when there is an error with :GoFmt [GH-1199]
- ๐ Fix
:GoInstall
to accept additional arguments if async mode was enabled [GH-1246]
BACKWARDS INCOMPATIBILITIES:
- ๐ New