From ed91e5bcd6aec0bdda810d73cfdec7f86d8a8351 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sat, 20 May 2023 17:26:26 -0400 Subject: [PATCH] nvim: use codelldb instead of vscode cpp for debugging vscode's cpp extension has proprietary bits --- src/.config/nvim/vimspector.vim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/.config/nvim/vimspector.vim b/src/.config/nvim/vimspector.vim index 52f1d76..ccfc471 100644 --- a/src/.config/nvim/vimspector.vim +++ b/src/.config/nvim/vimspector.vim @@ -34,16 +34,12 @@ function WriteInput() endfunction nnoremap rw :call WriteInput() -" 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