1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:30:07 +08:00

Add smart debugger lauching for ruby

This commit is contained in:
wsdjeg 2017-12-14 21:39:37 +08:00
parent 190274c4c1
commit 814f833514

View File

@ -22,5 +22,11 @@ endfunction
function! SpaceVim#layers#debug#launching(ft) abort
if a:ft ==# 'python'
exe 'VBGstartPDB ' . bufname('%')
elseif a:ft ==# 'ruby'
exe 'VBGstartRDebug ' . bufname('%')
else
echohl WarningMsg
echo 'read :h vebugger-launching'
echohl None
endif
endfunction