Common setup/cleardown

This commit is contained in:
Ben Jackson 2019-07-05 21:26:16 +01:00
commit 9fcfa13cc1
3 changed files with 26 additions and 19 deletions

View file

@ -0,0 +1,20 @@
function! vimspector#test#setup#SetUpWithMappings( mappings )
if exists ( 'g:loaded_vimpector' )
unlet g:loaded_vimpector
endif
if a:mappings != v:none
let g:vimspector_enable_mappings = a:mappings
endif
source vimrc
" This is a bit of a hack
runtime! plugin/**/*.vim
endfunction
function! vimspector#test#setup#ClearDown()
if exists( '*vimspector#internal#state#Reset' )
call vimspector#internal#state#Reset()
endif
endfunction