mirror of
https://github.com/amix/vimrc
synced 2025-07-07 08:45:00 +08:00
Update some plugins.
This commit is contained in:
@ -113,11 +113,21 @@ function! s:GoInstallBinaries(updateBinaries, ...)
|
||||
let l:packages = {}
|
||||
if a:0 > 0
|
||||
for l:bin in a:000
|
||||
let l:version = substitute(l:bin, '.*@', '', '')
|
||||
if l:version == l:bin
|
||||
let l:version = ''
|
||||
endif
|
||||
let l:bin = substitute(l:bin, '@.*', '', '')
|
||||
|
||||
let l:pkg = get(s:packages, l:bin, [])
|
||||
if len(l:pkg) == 0
|
||||
call go#util#EchoError('unknown binary: ' . l:bin)
|
||||
return
|
||||
endif
|
||||
|
||||
if l:version isnot ''
|
||||
let l:pkg[0] = substitute(l:pkg[0], '@\zs.*', l:version, '')
|
||||
endif
|
||||
let l:packages[l:bin] = l:pkg
|
||||
endfor
|
||||
else
|
||||
|
Reference in New Issue
Block a user