vim-go v1.23 Release Notes
Release Date: 2020-05-16 // almost 4 years ago-
BACKWARDS INCOMPATIBILITIES:
- โ Remove support for gocode. [GH-2686]
- Require at least Neovim >= 0.4.0 [GH-2853] [GH-2856] [GH-2863]
๐ IMPROVEMENTS:
- ๐ง Make signs for breakpoints configurable. [GH-2676] [GH-2690]
- Enable g:go_gopls_complete_unimported by default to stay aligned with gopls' defaults. [GH-2695]
- Document mappings that were recently added. [GH-2699]
- ๐ Handle null arrays better in gopls responses. [GH-2703]
- 0๏ธโฃ Use
gopls
defaults by default when they're not otherwise specified in vim-go options. [GH-2696] - โ Add support for
gomodifytags --skip-unexported
[GH-2660] - ๐ Show problems that prevent golangci-lint from running linters. [GH-2706] [GH-2720]
- ๐ Support golangci-lint config file by not using
--disable-all
wheng:go_metalinter_enable
org:go_metalinter_autosave_enabled
is set to an empty array. [GH-2655] [GH-2715] - โ Add support for Vim8 terminals. [GH-2639] [GH-2736]
- Replace
g:go_gopls_fuzzy_matching
withg:go_gopls_matcher
in response togopls
deprecation of itsfuzzyMatching
option. [GH-2728] - Set statuses and progress messages consistently for code quality tools. [GH-2727]
- Add a new supported value to
g:go_fmt_command
to format withgopls
. [GH-2729] [GH-2752] [GH-2852] - โ
Handle changes to
go test -v
output. [GH-2743] - Add
g:go_gopls_mod_tempfile
to configuregopls
'tempModfile
configuration. [GH-2747] - Add
g:go_gopls_options
to configuregopls
' commandline options. [GH-2747] - ๐ Improve readability of gopls logs. [GH-2773]
- Introduce
g:go_implements_mode
to allow:GoImplements
to be satisfied withgopls
. [GH-2741] [GH-2799] - Introduce
g:go_imports_mode
to allow:GoImports
to be satisfied withgopls
. [GH-2791] [GH-2794] [GH-2796] [GH-2848] - ๐ Send LSP synchronization messages to
gopls
when the file does not yet exist on disk as long as its directory exists. [GH-2805] - โ Run
gogetdoc
in the buffer's directory so that it will work regardless of the user's working directory in module-aware mode. [GH-2804] - Add
g:go_gopls_analyses
to supportgopls
' analyses options. [GH-2820] - Add
g:go_gopls_local
to supportgopls
' local option to control how third party imports are organized. [GH-2821] - ๐ Use gopls to get documentation and documentation links for identifiers under the cursor. [GH-2822] [GH-2839]
- ๐ Clarify documentation for terminal options. [GH-2843]
๐ BUG FIXES:
- ๐ Use the discovered full path for gopls when renaming. [GH-2692]
- ๐ Execute commands correctly on windows when
'shell'
is not cmd.exe [GH-2713] [GH-2724] - ๐ฆ Always execute
errcheck
in the current package's directory. [GH-2726] - ๐ Fix errors when highlighting diagnostics after a
:GoImports
. [GH-2746] - ๐ Preserve errors from formatting when both formatting and metalinting happen on save. [GH-2733] [GH-2810]
- ๐ฒ Preserve ordering of gopls messages in the log. [GH-2753]
- Fix
:GoDef
on windows wheng:go_def_mode
is set togopls
. [GH-2768] - ๐ Handle null values from
gopls
. [GH-2778] - Preserve diagnostics highlights after formatting. [GH-2779]
- ๐ Fix the decoding and encoding of multi-byte file paths received from and sent
to
gopls
. [GH-2784] - ๐ Fix
:GoRun
so that it works as expected when the current working directory is neither in GOPATH nor within a module. [GH-2782] [GH-2818] [GH-2842] - ๐ Use absolute file paths for
:GoRun
's arguments in terminal mode. [GH-2844] - ๐ Show the command executed by
:GoRun
wheng:go_debug
includes'shell-commands'
. [GH-2785] [GH-2817] - Clear the list for formatting errors when
g:go_fmt_command
isgopls
. [GH-2790] - ๐ Handle text edits from gopls that are only line insertions. [GH-2802] [GH-2803]
- Add
g:go_imports_autosave
so that imports can be adjusted on save wheng:go_imports_mode
is set togopls
. [GH-2800] [GH-2858] - Correct vim-go's help to correctly identify
g:go_referrer_mode
's default. [GH-2832] - ๐ Clear the quickfix list when
:GoLint
succeeds. [GH-2833] - ๐ป Respect arguments to
:GoDocBrowser
. [GH-2822] - ๐ Use the correct path to documentation for struct fields with
:GoDocBrowser
. [GH-2822] - ๐ท Do not try parsing errors from terminal jobs when the working directory has been removed. [GH-2824]
- Document that
g:go_jump_to_error
apples to running the metalinter on save, too. [GH-2854] - Ignore commented out import statements when executing
:GoImport
. [GH-2862] - Interpret file paths in
go vet
errors relative to the current buffer's directory. [GH-2882]