Use expression completion for watch and set

This commit is contained in:
Ben Jackson 2021-02-25 16:53:55 +00:00
commit f2d407256e
3 changed files with 16 additions and 8 deletions

View file

@ -235,7 +235,9 @@ function! vimspector#AddWatch( ... ) abort
return
endif
if a:0 == 0
let expr = input( 'Enter watch expression: ' )
let expr = input( 'Enter watch expression: ',
\ '',
\ 'custom,vimspector#CompleteExpr' )
else
let expr = a:1
endif