nvim-go的安装失败,出现“Undefined variable:g:go #debug”

问题描述 投票:1回答:1

我正在转向neovim并尝试让nvim-go运行。我的Plug中的init.vim部分看起来像这样:

call plug#begin('~/.vim/plugged')

Plug 'zchee/nvim-go', { 'do': 'make'}
Plug 'sebdah/vim-delve'

call plug#end()

如果我打开nvim并运行PlugInstall,我会收到以下错误:

Error detected while processing
/home/domma/.vim/plugged/nvim-go/plugin/nvim-go. vim: line   20:
E121: Undefined variable: g:go#debug

我检查了文件,错误很有意义。但我不知道这个变量来自哪里,应该如何设置。我怎样才能解决这个问题?

go vim vim-plugin neovim
1个回答
0
投票

临时编辑/home/domma/.vim/plugged/nvim-go/plugin/nvim-go.vim: line 20中的行

if g:go#debug - > if exists('g:go#debug')

© www.soinside.com 2019 - 2024. All rights reserved.