浏览代码

Print warning message on old Neovim (#206)

Suggested by @starcraftman.
Junegunn Choi 10 年之前
父节点
当前提交
923f3fb3d5
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      plug.vim

+ 6 - 0
plug.vim

@@ -740,6 +740,12 @@ function! s:update_impl(pull, force, args) abort
     endtry
   endif
 
+  if has('nvim') && !exists('*jobwait') && threads > 1
+    echohl WarningMsg
+    echomsg 'vim-plug: update Neovim for parallel installer'
+    echohl None
+  endif
+
   let s:update = {
     \ 'start':   reltime(),
     \ 'all':     todo,