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:
parent
b9ceb5e8ec
commit
920db068c6
7 changed files with 54 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue