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:
parent
190274c4c1
commit
814f833514
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user