Implement command line completion for watch/eval

This commit is contained in:
Ben Jackson 2020-01-17 00:02:24 +00:00
commit 355f0f0e0c
4 changed files with 53 additions and 3 deletions

View file

@ -121,7 +121,10 @@ function! vimspector#CompleteOutput( ArgLead, CmdLine, CursorPos ) abort
endfunction
function! vimspector#CompleteExpr( ArgLead, CmdLine, CursorPos ) abort
return []
return join( py3eval( '_vimspector_session.GetCompletionsSync( '
\.' vim.eval( "a:CmdLine" ),'
\.' int( vim.eval( "a:CursorPos" ) ) )' ),
\ "\n" )
endfunction
" Boilerplate {{{