Pressing the "K" key on a given word that refers to a package name like "suite"
import (
"github.com/stretchr/testify/suite"
)
should output the same as
:GoDoc suite
What happened instead?
:GoDoc suite that calls the shell command go doc suite (g:go_debug configured accordingly) provides more(!) documentation
...
func Run(t *testing.T, suite TestingSuite)
type AfterTest interface{ ... }
type BeforeTest interface{ ... }
type SetupAllSuite interface{ ... }
type SetupTestSuite interface{ ... }
type Suite struct{ ... }
type SuiteInformation struct{ ... }
type TearDownAllSuite interface{ ... }
type TearDownTestSuite interface{ ... }
type TestInformation struct{ ... }
type TestingSuite interface{ ... }
type WithStats interface{ ... }
Configuration (MUST fill this out):
vim-go version:
a2e5998
Vim version (first three lines from :version):
VIM - Vi IMproved 8.1 (2018 May 18, compiled Jun 2 2020 02:10:57)
Included patches: 1-2424
:GoDoc with an argument delegates to go doc while K and :GoDoc without an argument delegates to gopls for speed. gopls returns slightly different information for some identifiers than go doc does.
What did you expect to happen?
Pressing the "K" key on a given word that refers to a package name like "suite"
should output the same as
What happened instead?
:GoDoc suite
that calls the shell commandgo doc suite
(g:go_debug
configured accordingly) provides more(!) documentationConfiguration (MUST fill this out):
vim-go version:
a2e5998
Vim version (first three lines from
:version
):VIM - Vi IMproved 8.1 (2018 May 18, compiled Jun 2 2020 02:10:57) Included patches: 1-2424
Go version (
go version
):go version go1.20.4 aix/ppc64
Go environment
gopls version