Closed KaibutsuX closed 1 year ago
Generally, the jump to definition functionality works well. Given that Go 1.21 added support for a toolchain
directive in the go.mod
file and that you're already using Go 1.21, I suspect you only need to recompile gopls
. The easiest way to do that is :GoUpdateBinaries gopls
.
What did you do? (required: The issue will be closed when not provided)
Attempt to follow a function definition
leader ]
What did you expect to happen?
find function definition
What happened instead?
toolbar simply says: vim-go: ..//.././././go.mod:5: unknown directive: toolchain
Configuration (MUST fill this out):
vim-go version:
Not sure how to check that, just did a git pull on the .vim repo and PluginInstall yesterday though
vimrc
you used to reproduce:vimrc
```vim ```Vim version (first three lines from
:version
):VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Apr 15 2023 04:26:46) macOS version - arm64 Included patches: 1-1424
Go version (
go version
):go version go1.21.1 darwin/arm64
Go environment
go env
Output:gopls version
gopls version
Output:vim-go configuration:
vim-go configuration
filetype detection configuration:
filetype detection