Skip to content

Commit

Permalink
Merge pull request #2690 from bhcleek/config/rename-go_debug_breakpoi…
Browse files Browse the repository at this point in the history
…nt_symbol

rename g:go_debug_breakpoint_symbol
  • Loading branch information
bhcleek authored Feb 4, 2020
2 parents bd2e839 + 7bb3bec commit e0224b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions autoload/go/config.vim
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,8 @@ function! go#config#HighlightDebug() abort
return get(g:, 'go_highlight_debug', 1)
endfunction

function! go#config#DebugBreakpointSymbol() abort
return get(g:, 'go_debug_breakpoint_symbol', '>')
function! go#config#DebugBreakpointSignText() abort
return get(g:, 'go_debug_breakpoint_sign_text', '>')
endfunction

function! go#config#FoldEnable(...) abort
Expand Down
2 changes: 1 addition & 1 deletion autoload/go/debug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ function! s:list_breakpoints()
return l:signs
endfunction

exe 'sign define godebugbreakpoint text='.go#config#DebugBreakpointSymbol().' texthl=GoDebugBreakpoint'
exe 'sign define godebugbreakpoint text='.go#config#DebugBreakpointSignText().' texthl=GoDebugBreakpoint'
sign define godebugcurline text== texthl=GoDebugCurrent linehl=GoDebugCurrent

" restore Vi compatibility settings
Expand Down
6 changes: 3 additions & 3 deletions doc/vim-go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2333,12 +2333,12 @@ Highlight the current line and breakpoints in the debugger.
let g:go_highlight_debug = 1
<

*'go:go_debug_breakpoint_symbol'*
*'go:go_debug_breakpoint_sign_text'*

Set the symbol used for breakpints in the debugger. By default it's '>'.
Set the sign text used for breakpoints in the debugger. By default it's '>'.

>
let g:go_debug_breakpoint_symbol = '>'
let g:go_debug_breakpoint_sign_text = '>'
<

==============================================================================
Expand Down

0 comments on commit e0224b4

Please sign in to comment.