Skip to content

Commit

Permalink
Fix issues with using the wrong gocode
Browse files Browse the repository at this point in the history
  • Loading branch information
owodunni committed Dec 29, 2020
1 parent 6397c20 commit 97153ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Plug 'vim-airline/vim-airline-themes'
Plug 'scrooloose/nerdTree'

Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'deoplete-plugins/deoplete-go', { 'do': 'make'}
Plug 'davidhalter/jedi-vim'
Plug 'deoplete-plugins/deoplete-jedi'

Expand Down Expand Up @@ -106,6 +107,10 @@ inoremap <expr> <C-j> pumvisible() ? "\<C-n>" : "\<C-j>"
inoremap <expr> <C-k> pumvisible() ? "\<C-p>" : "\<C-k>"
let g:deoplete#enable_at_startup = 1

" deoplete-go settings
let g:deoplete#sources#go#gocode_binary = $GOLIB.'/bin/gocode'
let g:deoplete#sources#go#sort_class = ['package', 'func', 'type', 'var', 'const']

if has('win32')
let g:python3_host_prog = 'C:\Program Files\Python38\python.exe'
endif
Expand Down
10 changes: 5 additions & 5 deletions zshrc_profile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ source $HOME/.config/nvim/alias.sh
source $HOME/.config/nvim/nvim_profile
source $HOME/.local/venv/bin/activate

export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin

export PATH=$PATH:/usr/local/go/bin

export GOPATH=$HOME/.local/golib
export PATH=$PATH:$GOPATH/bin
export GOPATH=$GOPATH:$HOME/Prog/go
export GOLIB=$HOME/.local/golib
export PATH=$PATH:$GOLIB/bin
export GOPATH=$GOLIB:$HOME/Prog/go

0 comments on commit 97153ea

Please sign in to comment.