Closed khanakia closed 5 months ago
I just installed the neovim package as per instruction
git clone https://github.com/fatih/vim-go.git ~/.local/share/nvim/site/pack/plugins/start/vim-go
and then if open the file in neovim and run the below command it does not works :GoDef
Command should run in NeoVim
Gives error E492: Not an editor command :GoDef
Just installed the latest
vimrc
:version
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Nov 12 2023 01:16:04) macOS version - arm64 Included patches: 1-2018 Compiled by root@apple.com
go version
go version go1.21.3 darwin/arm64
go env
GO111MODULE='' GOARCH='arm64' GOBIN='' GOCACHE='/Users/test/Library/Caches/go-build' GOENV='/Users/test/Library/Application Support/go/env' GOEXE='' GOEXPERIMENT='' GOFLAGS='' GOHOSTARCH='arm64' GOHOSTOS='darwin' GOINSECURE='' GOMODCACHE='/Users/test/go/pkg/mod' GOOS='darwin' GOPATH='/Users/test/go' GOPRIVATE='github.com/theuxm' GOPROXY='https://proxy.golang.org,direct' GOROOT='/usr/local/go' GOSUMDB='sum.golang.org' GOTMPDIR='' GOTOOLCHAIN='auto' GOTOOLDIR='/usr/local/go/pkg/tool/darwin_arm64' GOVCS='' GOVERSION='go1.21.3' GCCGO='gccgo' AR='ar' CC='clang' CXX='clang++' CGO_ENABLED='1' GOMOD='/dev/null' GOWORK='' CGO_CFLAGS='-O2 -g' CGO_CPPFLAGS='' CGO_CXXFLAGS='-O2 -g' CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' PKG_CONFIG='pkg-config' GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/qk/jzsg52995wn53dv8bw62dl1w0000gn/T/go-build112288716=/tmp/go-build -gno-record-gcc-switches -fno-common'
gopls version
golang.org/x/tools/gopls v0.14.2 golang.org/x/tools/gopls@v0.14.2 h1:sIw6vjZiuQ9S7s0auUUkHlWgsCkKZFWDHmrge8LYsnc=
What does :filetype output?
:filetype
I was able to install it with Neovim by creating a vimgo.lua file inside /lua/plugins
vimgo.lua
/lua/plugins
return { "fatih/vim-go" }
What did you do? (required: The issue will be closed when not provided)
I just installed the neovim package as per instruction
and then if open the file in neovim and run the below command it does not works :GoDef
What did you expect to happen?
Command should run in NeoVim
What happened instead?
Gives error E492: Not an editor command :GoDef
Configuration (MUST fill this out):
vim-go version:
Just installed the latest
vimrc
you used to reproduce:vimrc
```vim all plug#begin() Plug 'tpope/vim-commentary' Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } call plug#end() ```Vim version (first three lines from
:version
):VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Nov 12 2023 01:16:04) macOS version - arm64 Included patches: 1-2018 Compiled by root@apple.com
Go version (
go version
):go version go1.21.3 darwin/arm64
Go environment
go env
Output:gopls version
gopls version
Output: