nvim: use codelldb instead of vscode cpp for debugging

vscode's cpp extension has proprietary bits
This commit is contained in:
dogeystamp 2023-05-20 17:26:26 -04:00
parent e6747a4bd2
commit ed91e5bcd6
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -34,16 +34,12 @@ function WriteInput()
endfunction
nnoremap <silent> <leader>rw :call WriteInput()<cr>
" start from input file
" feed from input file into program stdin
function RunInput()
call vimspector#Stop()
call vimspector#Restart()
call win_gotoid(g:vimspector_session_windows.code)
let inputfile=$HOME .. "/.cache/termdebug/input/" .. expand("%:r")
let @x = join(readfile(inputfile), "\n") .. "\n\n"
call win_gotoid(g:vimspector_session_windows.terminal)
" let vimspector set up before feeding input
sleep 1
normal G"xp
call win_gotoid(g:vimspector_session_windows.code)
endfunction