Add options for set sign text
This commit is contained in:
parent
cd61f1029c
commit
9c47e1b243
@ -301,17 +301,19 @@ function! s:standardCloseHandlers.removeCurrentMarker(debugger) dict
|
||||
sign unplace 1
|
||||
endfunction
|
||||
|
||||
let s:breakpoint_text = get(g:, 'vebugger_breakpoint_text', '->')
|
||||
let s:currentline_text = get(g:, 'vebugger_currentline_text', '**')
|
||||
|
||||
if hlexists("DebuggedLine")
|
||||
sign define vebugger_current linehl=DebuggedLine
|
||||
else
|
||||
sign define vebugger_current text=->
|
||||
exe 'sign define vebugger_current text=' . s:currentline_text
|
||||
endif
|
||||
|
||||
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
|
||||
sign define vebugger_breakpoint text=** linehl=ColorColumn texthl=ColorColumn
|
||||
exe 'sign define vebugger_breakpoint text=' . s:breakpoint_text . ' linehl=ColorColumn texthl=ColorColumn'
|
||||
endif
|
||||
|
||||
"Update all the marks(currently executed line and breakpoints) for a file
|
||||
|
@ -110,6 +110,14 @@ Example: >
|
||||
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
|
||||
files. This is disabled by default, to enable this set *g:vebugger_use_tags*
|
||||
option:
|
||||
|
Loading…
Reference in New Issue
Block a user