Prettify the output with some syntax and quiet option
This commit is contained in:
parent
4144631d03
commit
000f7a9232
8 changed files with 146 additions and 78 deletions
|
|
@ -256,7 +256,7 @@ function! vimspector#CompleteInstall( ArgLead, CmdLine, CursorPos ) abort
|
|||
\ . ')' )
|
||||
endfunction
|
||||
|
||||
function! vimspector#Update() abort
|
||||
function! vimspector#Update( ... ) abort
|
||||
if !s:enabled
|
||||
return
|
||||
endif
|
||||
|
|
@ -264,9 +264,20 @@ function! vimspector#Update() abort
|
|||
let prefix = vimspector#internal#state#GetAPIPrefix()
|
||||
py3 __import__( 'vimspector',
|
||||
\ fromlist = [ 'installer' ] ).installer.RunUpdate(
|
||||
\ vim.eval( 'prefix' ) )
|
||||
\ vim.eval( 'prefix' ),
|
||||
\ *vim.eval( 'a:000' ) )
|
||||
endfunction
|
||||
|
||||
function! vimspector#AbortInstall() abort
|
||||
if !s:enabled
|
||||
return
|
||||
endif
|
||||
|
||||
let prefix = vimspector#internal#state#GetAPIPrefix()
|
||||
py3 __import__( 'vimspector', fromlist = [ 'installer' ] ).installer.Abort()
|
||||
endfunction
|
||||
|
||||
|
||||
" Boilerplate {{{
|
||||
let &cpoptions=s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue