heramerom
heramerom

Reputation: 161

Can vim-go completion third party framework

I use vim-go plugin and it can autocompletion the build in framework such as "fmt", "os" etc. But cannot completion third party framework.

Upvotes: 0

Views: 197

Answers (2)

heramerom
heramerom

Reputation: 161

Oh... It's my fault, I didn't config the gocode

➜  ~ gocode set lib-path "$GOPATH/pkg/darwin_amd64"
lib-path "$GOPATH/pkg/darwin_amd64"
➜  ~ 
➜  ~ gocode set
propose-builtins true
lib-path "$GOPATH/pkg/darwin_amd64"
autobuild true
force-debug-output ""
package-lookup-mode "go"
➜  ~ 

Now, it works well!

Upvotes: 1

elithrar
elithrar

Reputation: 24300

Yes it can.You need to install the gocode daemon, which you can do via :GoInstallBinaries once vim-go is installed.

See the README for more details.

Upvotes: 1

Related Questions