PlugInstall上的Neovim错误 3_job_handler

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

运行时出现以下错误:PlugInstall

Error detected while processing function <SNR>3_job_handler:
E121: Undefined variable: self

插件安装永远不会完成。

我的.vimrc的一部分

set nocompatible        
set hidden
set nowrap
set termguicolors
filetype on
map  <c-l> :tabn<cr>
map  <c-h> :tabp<cr>
map  <c-n> :tabnew<cr>
call plug#begin('~/.vim/plugged')

....

"typescript
Plug 'mhartington/nvim-typescript'
call plug#end()
vim neovim
3个回答
6
投票

我不得不更新vim-plug

我跑了

curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

它现在工作正常


0
投票

我使用了插件

mhartington/nvim-typescript

Plug 'mhartington/nvim-typescript'

set nocompatible                                                                                                
set hidden
set nowrap
set termguicolors
filetype on
map  <c-l> :tabn<cr>
map  <c-h> :tabp<cr>
map  <c-n> :tabnew<cr>
call plug#begin('~/.vim/plugged')
"typescript
Plug 'mhartington/nvim-typescript'
call plug#end()

0
投票

这个问题已得到解决,但由于某些原因,vim-plug在撰写本文时尚未发布for 2 years。如果在阅读本文时仍然如此,请确保使用的是git master分支,而不是最新版本。如果您使用的是包管理器,那么您很可能已经过时了。

如果您正在使用AUR形式,请使用neovim-plug-git,而不是neovim-plug。 :PlugUpgrade也可以正常工作,但问题更可能以这种方式重现。

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