update vim-plug
This commit is contained in:
parent
47bce2ffe0
commit
fcc0148fc1
@ -74,7 +74,7 @@ let s:mac_gui = has('gui_macvim') && has('gui_running')
|
|||||||
let s:is_win = has('win32') || has('win64')
|
let s:is_win = has('win32') || has('win64')
|
||||||
let s:py2 = has('python') && !has('nvim') && !s:is_win && !has('win32unix')
|
let s:py2 = has('python') && !has('nvim') && !s:is_win && !has('win32unix')
|
||||||
let s:ruby = has('ruby') && !has('nvim') && (v:version >= 703 || v:version == 702 && has('patch374'))
|
let s:ruby = has('ruby') && !has('nvim') && (v:version >= 703 || v:version == 702 && has('patch374'))
|
||||||
let s:nvim = has('nvim') && !exists('##JobActivity') && !s:is_win
|
let s:nvim = has('nvim') && exists('*jobwait') && !s:is_win
|
||||||
let s:me = resolve(expand('<sfile>:p'))
|
let s:me = resolve(expand('<sfile>:p'))
|
||||||
let s:base_spec = { 'branch': 'master', 'frozen': 0 }
|
let s:base_spec = { 'branch': 'master', 'frozen': 0 }
|
||||||
let s:TYPE = {
|
let s:TYPE = {
|
||||||
@ -165,7 +165,7 @@ function! plug#end()
|
|||||||
if has_key(plug, 'on')
|
if has_key(plug, 'on')
|
||||||
let s:triggers[name] = { 'map': [], 'cmd': [] }
|
let s:triggers[name] = { 'map': [], 'cmd': [] }
|
||||||
for cmd in s:to_a(plug.on)
|
for cmd in s:to_a(plug.on)
|
||||||
if cmd =~ '^<Plug>.\+'
|
if cmd =~? '^<Plug>.\+'
|
||||||
if empty(mapcheck(cmd)) && empty(mapcheck(cmd, 'i'))
|
if empty(mapcheck(cmd)) && empty(mapcheck(cmd, 'i'))
|
||||||
call s:assoc(lod.map, cmd, name)
|
call s:assoc(lod.map, cmd, name)
|
||||||
endif
|
endif
|
||||||
@ -270,7 +270,7 @@ if s:is_win
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:is_local_plug(repo)
|
function! s:is_local_plug(repo)
|
||||||
return a:repo =~? '^[a-z]:'
|
return a:repo =~? '^[a-z]:\|^[%~]'
|
||||||
endfunction
|
endfunction
|
||||||
else
|
else
|
||||||
function! s:rtp(spec)
|
function! s:rtp(spec)
|
||||||
@ -740,6 +740,12 @@ function! s:update_impl(pull, force, args) abort
|
|||||||
endtry
|
endtry
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if has('nvim') && !exists('*jobwait') && threads > 1
|
||||||
|
echohl WarningMsg
|
||||||
|
echomsg 'vim-plug: update Neovim for parallel installer'
|
||||||
|
echohl None
|
||||||
|
endif
|
||||||
|
|
||||||
let s:update = {
|
let s:update = {
|
||||||
\ 'start': reltime(),
|
\ 'start': reltime(),
|
||||||
\ 'all': todo,
|
\ 'all': todo,
|
||||||
|
Loading…
Reference in New Issue
Block a user