Use a prompt buffer for adding watches

This very new feature makes it kind of nice to add new watches in the
place where they will appear, keeping the eye in the same screen
location.
This commit is contained in:
Ben Jackson 2018-06-09 22:33:22 +01:00
commit 920db068c6
7 changed files with 54 additions and 9 deletions

View file

@ -83,6 +83,12 @@ function! vimspector#AddWatch( expr ) abort
py3 _vimspector_session.AddWatch( vim.eval( 'a:expr' ) )
endfunction
function! vimspector#AddWatchPrompt( expr ) abort
stopinsert
setlocal nomodified
call vimspector#AddWatch( a:expr )
endfunction
function! vimspector#ShowOutput( category ) abort
py3 _vimspector_session.ShowOutput( vim.eval( 'a:category' ) )
endfunction