Reputation: 474
Getting following error on Running :PlugInstall
Error detected while processing function <SNR>3_job_handler:
E121: Undefined variable: self
The plugin installation never completes.
Part of my .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()
Upvotes: 3
Views: 1428
Reputation: 2557
This issue was fixed, but for some reason vim-plug hasn't released for 2 years as of writing this. If this is still true when you are reading this, make sure you are using the git master branch, not the latest release. If you are using a package manager you most likely have the outdated one.
If you're instaiing form AUR, use neovim-plug-git
, not neovim-plug
. :PlugUpgrade should work as well, but the issue is more likely to resurface that way.
Upvotes: 1
Reputation: 474
I had to update the vim-plug
I ran
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
It works fine now
Upvotes: 6
Reputation: 28229
I used plugin from
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()
Upvotes: 0