2

我一直在尝试在 NeoVim 中为 GoLang 自动完成工作。搜索时,我被带到了deoplete。我使用dein.vim作为 NeoVim 包管理器。我的.vimrc文件设置如下:

if &compatible
set nocompatible               " Be iMproved
endif

" Required:
set runtimepath^=/home/tyler/repos/github.com/Shougo/dein.vim

" Required:
call dein#begin(expand('/home/tyler'))

" Let dein manage dein
" Required:
call dein#add('Shougo/dein.vim')

" Add or remove your plugins here:
call dein#add('Shougo/neosnippet.vim')
call dein#add('Shougo/neosnippet-snippets')
call dein#add('Shougo/deoplete.nvim')

" You can specify revision/branch/tag.
call dein#add('Shougo/vimshell', { 'rev': '3787e5' })

" Required:
call dein#end()

" Required:
filetype plugin indent on

" If you want to install not installed plugins on startup.
if dein#check_install()
    call dein#install()
endif

let g:deoplete#enable_at_startup = 1

我已经围绕各种 github 问题进行了大量搜索,但还没有任何运气。回顾一下,问题是我似乎无法让 deoplete NeoVim 插件自动完成。也许我对这应该如何工作有误解。

4

1 回答 1

3

@Anzel 在这里提供了一个很好的答案。Python neovim 接口需要通过 pip 安装。例如pip3 install neovim. 为了解决这个问题,我试图让 Neovim 通过 deoplete 插件使用自动完成功能。这不起作用(即使指定了选项,也不建议实时自动完成),因为没有安装所需的 Python 接口。python接口安装好后,简单的

于 2016-05-05T01:21:55.267 回答