Add bang versions of install commands to leave the output open
This commit is contained in:
parent
357e112cdf
commit
29cb5c914b
5 changed files with 33 additions and 12 deletions
|
|
@ -232,7 +232,7 @@ function! vimspector#CompleteExpr( ArgLead, CmdLine, CursorPos ) abort
|
|||
\ "\n" )
|
||||
endfunction
|
||||
|
||||
function! vimspector#Install( ... ) abort
|
||||
function! vimspector#Install( bang, ... ) abort
|
||||
if !s:enabled
|
||||
return
|
||||
endif
|
||||
|
|
@ -243,6 +243,7 @@ function! vimspector#Install( ... ) abort
|
|||
py3 __import__( 'vimspector',
|
||||
\ fromlist = [ 'installer' ] ).installer.RunInstaller(
|
||||
\ vim.eval( 'prefix' ),
|
||||
\ vim.eval( 'a:bang' ) == '!',
|
||||
\ *vim.eval( 'a:000' ) )
|
||||
endfunction
|
||||
|
||||
|
|
@ -256,7 +257,7 @@ function! vimspector#CompleteInstall( ArgLead, CmdLine, CursorPos ) abort
|
|||
\ . ')' )
|
||||
endfunction
|
||||
|
||||
function! vimspector#Update( ... ) abort
|
||||
function! vimspector#Update( bang, ... ) abort
|
||||
if !s:enabled
|
||||
return
|
||||
endif
|
||||
|
|
@ -265,6 +266,7 @@ function! vimspector#Update( ... ) abort
|
|||
py3 __import__( 'vimspector',
|
||||
\ fromlist = [ 'installer' ] ).installer.RunUpdate(
|
||||
\ vim.eval( 'prefix' ),
|
||||
\ vim.eval( 'a:bang' ) == '!',
|
||||
\ *vim.eval( 'a:000' ) )
|
||||
endfunction
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue