Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom symbol for breakpoint. #2676

Merged
merged 3 commits into from Feb 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions autoload/go/config.vim
Expand Up @@ -489,6 +489,10 @@ 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', '>')
endfunction

function! go#config#FoldEnable(...) abort
if a:0 > 0
return index(go#config#FoldEnable(), a:1) > -1
Expand Down
2 changes: 1 addition & 1 deletion autoload/go/debug.vim
Expand Up @@ -1116,7 +1116,7 @@ function! s:list_breakpoints()
return l:signs
endfunction

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

" restore Vi compatibility settings
Expand Down
8 changes: 8 additions & 0 deletions doc/vim-go.txt
Expand Up @@ -2333,6 +2333,14 @@ Highlight the current line and breakpoints in the debugger.
let g:go_highlight_debug = 1
<

*'go:go_debug_breakpoint_symbol'*

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

>
let g:go_debug_breakpoint_symbol = '>'
<

==============================================================================
FAQ TROUBLESHOOTING *go-troubleshooting*

Expand Down