Merge pull request #50 from SpaceVim/develop

Add options for set sign text
This commit is contained in:
Idan Arye 2017-12-18 16:58:18 +02:00 committed by GitHub
commit 44cc26204e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 3 deletions

View File

@ -301,17 +301,19 @@ function! s:standardCloseHandlers.removeCurrentMarker(debugger) dict
sign unplace 1 sign unplace 1
endfunction endfunction
let s:breakpoint_text = get(g:, 'vebugger_breakpoint_text', '->')
let s:currentline_text = get(g:, 'vebugger_currentline_text', '**')
if hlexists("DebuggedLine") if hlexists("DebuggedLine")
sign define vebugger_current linehl=DebuggedLine sign define vebugger_current linehl=DebuggedLine
else else
sign define vebugger_current text=-> execute 'sign define vebugger_current text=' . s:currentline_text
endif endif
if hlexists('BreakPoint') if hlexists('BreakPoint')
sign define vebugger_breakpoint text=** linehl=BreakPoint texthl=BreakPoint execute 'sign define vebugger_breakpoint text=' . s:breakpoint_text . ' linehl=BreakPoint texthl=BreakPoint'
else else
sign define vebugger_breakpoint text=** linehl=ColorColumn texthl=ColorColumn execute 'sign define vebugger_breakpoint text=' . s:breakpoint_text . ' linehl=ColorColumn texthl=ColorColumn'
endif endif
"Update all the marks(currently executed line and breakpoints) for a file "Update all the marks(currently executed line and breakpoints) for a file

View File

@ -110,6 +110,14 @@ Example: >
let g:vebugger_view_source_cmd='edit' let g:vebugger_view_source_cmd='edit'
< <
If you want to change the sign text of current line and breakpoint, use
*g:vebugger_breakpoint_text* and *g:vebugger_currentline_text*
Example: >
let g:vebugger_breakpoint_text='->'
let g:vebugger_currentline_text='**'
<
Some debuggers (currently jdb only) may use vim tags to find required source Some debuggers (currently jdb only) may use vim tags to find required source
files. This is disabled by default, to enable this set *g:vebugger_use_tags* files. This is disabled by default, to enable this set *g:vebugger_use_tags*
option: option: