Skip to content

brendanjerwin/deoplete-go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

deoplete-go

Go deoplete source for gocode and vim-go.

Install:

NeoBundle 'zchee/deoplete-go'
# or
Plug 'zchee/deoplete-go'

Usage:

If you using the gocode, set

let g:deoplete#sources#go = 'gocode'

If you using the vim-go, set

let g:deoplete#sources#go = 'vim-go'

Sample init.vim:

" neocomplete like
" https://github.com/Shougo/deoplete.nvim/blob/master/doc/deoplete.txt#L594-L599
set completeopt+=noinsert

" Disable auto selection
set completeopt+=noselect

" for neovim python-client
let g:python3_host_prog  = '/path/to/python3'

" deoplete config
let g:deoplete#enable_at_startup = 1
let g:deoplete#auto_completion_start_length = 0
let g:deoplete#sources#go = 'vim-go'

Todo:

  • Execute gocode binary instead of call vim function
  • Get and parse completion list of json format. such as ycm
  • Support Go stdlib package import "***" name completion
  • Retain the static api text? or parse?
  • When there is no candidate infomation, deoplete will cause an error
  • Support fizzy matching
  • Parse included cgo (C,C++ language) headers
  • ctags will be blocking deoplete

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%