Add :VimspectorUpdate

This commit is contained in:
Ben Jackson 2020-07-22 12:50:44 +01:00
commit 4144631d03
4 changed files with 33 additions and 0 deletions

View file

@ -256,6 +256,17 @@ function! vimspector#CompleteInstall( ArgLead, CmdLine, CursorPos ) abort
\ . ')' )
endfunction
function! vimspector#Update() abort
if !s:enabled
return
endif
let prefix = vimspector#internal#state#GetAPIPrefix()
py3 __import__( 'vimspector',
\ fromlist = [ 'installer' ] ).installer.RunUpdate(
\ vim.eval( 'prefix' ) )
endfunction
" Boilerplate {{{
let &cpoptions=s:save_cpo
unlet s:save_cpo