Closed Dbz closed 5 years ago
gocode is already installed?
You should check if gocode works.
Yeah, my plugins are in a separate file. Here are the related ones.
" ~~~ Language Server ~~~
" Plug 'dbakker/vim-projectroot'
Plug 'autozimu/LanguageClient-neovim', {
\ 'branch': 'next',
\ 'do': 'bash install.sh',
\ }
" ~~~ Language support
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
" Following makes go work with deoplete
Plug 'zchee/deoplete-go', { 'do': 'make'}
Plug 'mdempsky/gocode', { 'rtp': 'vim', 'do': '~/.vim/plugged/gocode/vim/symlink.sh' }
" ~~~ auto completion ~~~
Plug 'Shougo/deoplete.nvim'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
If I run gocode -help
in my terminal it responds with the usage.
Also here is my $GOPATH
/Users/danielburt/go
and $PATH
:
/Users/danielburt/apache-cassandra-3.11.2/bin:./bin:/Users/danielburt/bin:/Users/danielburt/.rbenv/bin:/Users/danielburt/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Postgres.app/Contents/Versions/9.4/bin:/usr/local/mysql/bin:/Users/danielburt/bin:/Users/danielburt/go/bin
The issue is that my actual code wasn't in the correct path. I didn't understand that all Go code repos go in the same place. Thank you for your help @Shougo!
For people finding this How to Write Go Code was helpful in figuring out that all Go projects are in the same directory.
Oh, OK.
Hello thank you for making deoplete-go! I love deoplete. Unfortunately, it doesn't seem to be adding functionality to deoplete (but maybe I have something wrong with my deoplete settings. I will paste all of my related vimrc config: