diff --git a/Internal/os_nvim_init.vim b/Internal/os_nvim_init.vim index e7662d1..0cfac3a 100644 --- a/Internal/os_nvim_init.vim +++ b/Internal/os_nvim_init.vim @@ -295,6 +295,38 @@ augroup persistent_settings au bufenter * :set formatoptions=q1j augroup end +function! RemedyBGOpenFile() + execute("!start remedybg open-file " . expand("%:p") . " " . line(".")) + execute("!powershell -Command Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::AppActivate(' - RemedyBG')") +endfunction +command RemedyBGOpenFile call RemedyBGOpenFile() + +function! RemedyBGStartDebugging() + execute("!start remedybg start-debugging " . expand("%:p") . " " . line(".")) + execute("!powershell -Command Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::AppActivate(' - RemedyBG')") +endfunction +command RemedyBGStartDebugging call RemedyBGStartDebugging() + +function! RemedyBGStopDebugging() + execute("!start remedybg stop-debugging " . expand("%:p") . " " . line(".")) + execute("!powershell -Command Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::AppActivate(' - RemedyBG')") +endfunction +command RemedyBGStopDebugging call RemedyBGStopDebugging() + +function! RemedyBGRunToCursor() + execute("!start remedybg open-file " . expand("%:p") . " " . line(".")) + execute("!start remedybg run-to-cursor " . expand("%:p") . " " . line(".")) + execute("!powershell -Command Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::AppActivate(' - RemedyBG')") +endfunction +command RemedyBGRunToCursor call RemedyBGRunToCursor() + +function! RemedyBGAddBreakpointAtFile() + execute("!start remedybg open-file " . expand("%:p") . " " . line(".")) + execute("!start remedybg add-breakpoint-at-file " . expand("%:p") . " " . line(".")) + execute("!powershell -Command Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::AppActivate(' - RemedyBG')") +endfunction +command RemedyBGAddBreakpointAtFile call RemedyBGAddBreakpointAtFile() + " FZF " ============================================================================== " Empty value to disable preview window altogether @@ -314,7 +346,7 @@ command! -bang -nargs=? -complete=dir FzfCustomFiles " General Key Bindings " ============================================================================== -" Telescope Bindings +" FZF Bindings nnoremap h FzfHistory nnoremap f FzfCustomFiles nnoremap g FzfRg @@ -323,6 +355,12 @@ nnoremap cc FzfCommits nnoremap cb FzfBCommits nnoremap b FzfBuffers +nnoremap RemedyBGOpenFile +nnoremap RemedyBGStartDebugging +nnoremap RemedyBGStopDebugging +nnoremap RemedyBGAddBreakpointAtFile +nnoremap RemedyBGRunToCursor + " Map Ctrl+HJKL to navigate buffer window nmap :wincmd h nmap :wincmd j