You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With g:go_gopls_gofumpt = 1, save the following file:
package main
var (
// foob=2
)
funcmain() {}
What did you expect to happen?
Expected the formatting of the var block to be reformatted as:
// foovarb=2
What happened instead?
Creates a syntactically invalid file:
package main
var (// foovarb=2funcmain() {}
I'm unable to reproduce the issue with the gofumpt binary (see mvdan/gofumpt#119). This only appears to happen in vim-go with g:go_gopls_gofumpt enabled.
What did you do?
With
g:go_gopls_gofumpt = 1
, save the following file:What did you expect to happen?
Expected the formatting of the
var
block to be reformatted as:What happened instead?
Creates a syntactically invalid file:
I'm unable to reproduce the issue with the
gofumpt
binary (see mvdan/gofumpt#119). This only appears to happen in vim-go withg:go_gopls_gofumpt
enabled.Configuration
vim-go version:
Occurs with v1.25 and HEAD (currently 8c883d7)
vimrc
you used to reproduce:vimrc
Vim version (first three lines from
:version
):NVIM v0.4.4
Build type: Release
LuaJIT 2.0.5
Go version (
go version
):go version go1.16.3 linux/amd64
Go environment
go env
Output:gopls version
gopls version
Output:vim-go configuration:
vim-go configuration
filetype detection configuration:
filetype detection
The text was updated successfully, but these errors were encountered: