Add options for set sign text

This commit is contained in:
wsdjeg 2017-12-18 22:18:09 +08:00
parent cd61f1029c
commit 9c47e1b243
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=-> exe '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 exe 'sign define vebugger_breakpoint text=' . s:breakpoint_text . ' linehl=BreakPoint texthl=BreakPoint'
else else
sign define vebugger_breakpoint text=** linehl=ColorColumn texthl=ColorColumn exe '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: