update nvim to use raddebugger and update nodejs
This commit is contained in:
+28
-25
@@ -291,41 +291,44 @@ augroup persistent_settings
|
||||
au bufenter * :set formatoptions=q1j
|
||||
augroup end
|
||||
|
||||
function! RemedyBGOpenFile()
|
||||
execute("!remedybg open-file " . expand("%:p") . " " . line("."))
|
||||
execute("!powershell -Command Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::AppActivate(' - RemedyBG')")
|
||||
function! RADDbgOpenFile()
|
||||
execute("!dev raddbg --ipc open " . substitute(expand("%:p"), '\\', '/', 'g'))
|
||||
execute("!dev raddbg --ipc goto_line " . line("."))
|
||||
execute("!powershell -Command Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::AppActivate('The RAD Debugger')")
|
||||
endfunction
|
||||
command RemedyBGOpenFile call RemedyBGOpenFile()
|
||||
command RADDbgOpenFile call RADDbgOpenFile()
|
||||
|
||||
function! RemedyBGStartDebugging()
|
||||
execute("!remedybg start-debugging " . expand("%:p") . " " . line("."))
|
||||
function! RADDbgStartDebugging()
|
||||
execute("!dev raddbg --ipc run")
|
||||
endfunction
|
||||
command RemedyBGStartDebugging call RemedyBGStartDebugging()
|
||||
command RADDbgStartDebugging call RADDbgStartDebugging()
|
||||
|
||||
function! RemedyBGStopDebugging()
|
||||
execute("!remedybg stop-debugging " . expand("%:p") . " " . line("."))
|
||||
function! RADDbgStopDebugging()
|
||||
execute("!dev raddbg --ipc kill_all")
|
||||
endfunction
|
||||
command RemedyBGStopDebugging call RemedyBGStopDebugging()
|
||||
command RADDbgStopDebugging call RADDbgStopDebugging()
|
||||
|
||||
function! RemedyBGRunToCursor()
|
||||
execute("!remedybg open-file " . expand("%:p") . " " . line("."))
|
||||
execute("!remedybg run-to-cursor " . expand("%:p") . " " . line("."))
|
||||
execute("!powershell -Command Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::AppActivate(' - RemedyBG')")
|
||||
function! RADDbgRunToCursor()
|
||||
execute("!dev raddbg --ipc open " . substitute(expand("%:p"), '\\', '/', 'g'))
|
||||
execute("!dev raddbg --ipc goto_line " . line("."))
|
||||
execute("!dev raddbg --ipc run_to_cursor " . substitute(expand("%:p"), '\\', '/', 'g') . ":" . line("."))
|
||||
execute("!powershell -Command Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::AppActivate('The RAD Debugger')")
|
||||
endfunction
|
||||
command RemedyBGRunToCursor call RemedyBGRunToCursor()
|
||||
command RADDbgRunToCursor call RADDbgRunToCursor()
|
||||
|
||||
function! RemedyBGAddBreakpointAtFile()
|
||||
execute("!remedybg open-file " . expand("%:p") . " " . line("."))
|
||||
execute("!remedybg add-breakpoint-at-file " . expand("%:p") . " " . line("."))
|
||||
execute("!powershell -Command Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::AppActivate(' - RemedyBG')")
|
||||
function! RADDbgAddBreakpointAtFile()
|
||||
execute("!dev raddbg --ipc open " . substitute(expand("%:p"), '\\', '/', 'g'))
|
||||
execute("!dev raddbg --ipc goto_line " . line("."))
|
||||
execute("!dev raddbg --ipc toggle_breakpoint " . substitute(expand("%:p"), '\\', '/', 'g') . ":" . line("."))
|
||||
execute("!powershell -Command Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::AppActivate('The RAD Debugger')")
|
||||
endfunction
|
||||
command RemedyBGAddBreakpointAtFile call RemedyBGAddBreakpointAtFile()
|
||||
command RADDbgAddBreakpointAtFile call RADDbgAddBreakpointAtFile()
|
||||
|
||||
nnoremap <silent> <F6> <cmd>RemedyBGOpenFile<cr><cr>
|
||||
nnoremap <silent> <F5> <cmd>RemedyBGStartDebugging<cr><cr>
|
||||
nnoremap <silent> <S-F5> <cmd>RemedyBGStopDebugging<cr><cr>
|
||||
nnoremap <silent> <F9> <cmd>RemedyBGAddBreakpointAtFile<cr><cr>
|
||||
nnoremap <silent> <C-F10> <cmd>RemedyBGRunToCursor<cr><cr>
|
||||
nnoremap <silent> <F6> <cmd>RADDbgOpenFile<cr><cr>
|
||||
nnoremap <silent> <F5> <cmd>RADDbgStartDebugging<cr><cr>
|
||||
nnoremap <silent> <S-F5> <cmd>RADDbgStopDebugging<cr><cr>
|
||||
nnoremap <silent> <F9> <cmd>RADDbgAddBreakpointAtFile<cr><cr>
|
||||
nnoremap <silent> <C-F10> <cmd>RADDbgRunToCursor<cr><cr>
|
||||
|
||||
" General Key Bindings /////////////////////////////////////////////////////////////////////////////
|
||||
" FZF Bindings
|
||||
|
||||
Reference in New Issue
Block a user