Add some :commands for basic usages
This commit is contained in:
parent
04bb03da0a
commit
7456c26c2a
5 changed files with 67 additions and 21 deletions
|
|
@ -96,6 +96,11 @@ function! vimspector#AddWatchPrompt( expr ) abort
|
|||
call vimspector#AddWatch( a:expr )
|
||||
endfunction
|
||||
|
||||
function! vimspector#Evaluate( expr ) abort
|
||||
py3 _vimspector_session.ShowOutput( 'Console' )
|
||||
py3 _vimspector_session.EvaluateConsole( vim.eval( 'a:expr' ) )
|
||||
endfunction
|
||||
|
||||
function! vimspector#EvaluateConsole( expr ) abort
|
||||
stopinsert
|
||||
setlocal nomodified
|
||||
|
|
@ -110,6 +115,14 @@ function! vimspector#ListBreakpoints() abort
|
|||
py3 _vimspector_session.ListBreakpoints()
|
||||
endfunction
|
||||
|
||||
function! vimspector#CompleteOutput( ArgLead, CmdLine, CursorPos ) abort
|
||||
return py3eval( '_vimspector_session.GetOutputBuffers()' )
|
||||
endfunction
|
||||
|
||||
function! vimspector#CompleteExpr( ArgLead, CmdLine, CursorPos ) abort
|
||||
return []
|
||||
endfunction
|
||||
|
||||
" Boilerplate {{{
|
||||
let &cpoptions=s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue