mirror of
https://github.com/amix/vimrc
synced 2025-06-30 11:54:59 +08:00
Updated plugins
This commit is contained in:
@ -30,7 +30,7 @@ case "$vim" in
|
||||
|
||||
"nvim")
|
||||
# Use latest stable version.
|
||||
tag="v0.3.1"
|
||||
tag="v0.3.2"
|
||||
giturl="https://github.com/neovim/neovim"
|
||||
;;
|
||||
|
||||
@ -62,7 +62,7 @@ cd "$srcdir"
|
||||
if [ "$1" = "nvim" ]; then
|
||||
|
||||
# TODO: Use macOS binaries on macOS
|
||||
curl -Ls https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz |
|
||||
curl -Ls https://github.com/neovim/neovim/releases/download/$tag/nvim-linux64.tar.gz |
|
||||
tar xzf - -C /tmp/vim-go-test/
|
||||
mv /tmp/vim-go-test/nvim-linux64 /tmp/vim-go-test/nvim-install
|
||||
mkdir -p "$installdir/share/nvim/runtime/pack/vim-go/start"
|
||||
|
@ -64,6 +64,12 @@ for s:test in sort(s:tests)
|
||||
endif
|
||||
try
|
||||
exe 'call ' . s:test
|
||||
" sleep to give events a chance to be processed. This is especially
|
||||
" important for the LSP code to have a chance to run before Vim exits, in
|
||||
" order to avoid errors trying to write to the gopls channels since Vim
|
||||
" would otherwise stop gopls before the event handlers were run and result
|
||||
" in 'stream closed' errors when the events were run _after_ gopls exited.
|
||||
sleep 50m
|
||||
catch
|
||||
let v:errors += [v:exception]
|
||||
endtry
|
||||
@ -76,17 +82,17 @@ for s:test in sort(s:tests)
|
||||
let s:elapsed_time = substitute(reltimestr(reltime(s:started)), '^\s*\(.\{-}\)\s*$', '\1', '')
|
||||
let s:done += 1
|
||||
|
||||
call s:logmessages()
|
||||
|
||||
if len(v:errors) > 0
|
||||
let s:fail += 1
|
||||
call add(s:logs, printf("--- FAIL %s (%ss)", s:test[:-3], s:elapsed_time))
|
||||
call s:logmessages()
|
||||
call extend(s:logs, map(v:errors, '" ". v:val'))
|
||||
|
||||
" Reset so we can capture failures of the next test.
|
||||
let v:errors = []
|
||||
else
|
||||
if g:test_verbose is 1
|
||||
call s:logmessages()
|
||||
call add(s:logs, printf("--- PASS %s (%ss)", s:test[:-3], s:elapsed_time))
|
||||
endif
|
||||
endif
|
||||
|
Reference in New Issue
Block a user