1
0
mirror of https://github.com/amix/vimrc synced 2025-07-07 08:45:00 +08:00

Update some plugins.

This commit is contained in:
Kurtis Moxley
2022-08-08 16:41:37 +08:00
parent f6ba361e3e
commit bbbedb5311
15 changed files with 204 additions and 79 deletions

View File

@ -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