Add 'example' allowing simple command-line attachment

This commit is contained in:
Ben Jackson 2020-01-17 17:50:54 +00:00
commit 018ae05de8
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,13 @@
if argc() < 2
echom 'Usage:' v:argv[ 0 ] 'processName binary'
cquit!
endif
setfiletype cpp
call vimspector#LaunchWithSettings( #{
\ configuration: "C++ - Attach Local Process",
\ processName: argv( 0 ),
\ binary: argv( 1 ),
\ } )
1,2argd