Skip to content

Commit

Permalink
normalize option to highlight debugger locations
Browse files Browse the repository at this point in the history
  • Loading branch information
bhcleek committed Oct 17, 2018
1 parent 5dafa0d commit adc5838
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
4 changes: 2 additions & 2 deletions autoload/go/config.vim
Expand Up @@ -420,8 +420,8 @@ function! go#config#HighlightVariableDeclarations() abort
return get(g:, 'go_highlight_variable_declarations', 0)
endfunction

function! go#config#DebugDefaultHighlighting() abort
return get(g:, 'go_debug_default_highlighting', 1)
function! go#config#HighlightDebug() abort
return get(g:, 'go_highlight_debug', 1)
endfunction

function! go#config#FoldEnable(...) abort
Expand Down
14 changes: 3 additions & 11 deletions doc/vim-go.txt
Expand Up @@ -2110,22 +2110,14 @@ Server address `dlv` will listen on; must be in `hostname:port` format.
Defaults to `127.0.0.1:8181`:
>
let g:go_debug_address = '127.0.0.1:8181'
<

*'g:go_highlight_debug'*

*'g:go_debug_default_highlighting'*
Provides the option to override debugger highlighting

Default:
Highlight the current line and breakpoints in the debugger.

>
let g:go_debug_default_highlighting = 1
hi GoDebugBreakpoint term=standout
\ ctermbg=117 ctermfg=0
\ guibg=#BAD4F5 guifg=Black
hi GoDebugCurrent term=reverse
\ ctermbg=12 ctermfg=7
\ guibg=DarkBlue guifg=White
<

==============================================================================
Expand Down
2 changes: 1 addition & 1 deletion syntax/go.vim
Expand Up @@ -374,7 +374,7 @@ function! s:hi()
hi def goCoverageUncover ctermfg=red guifg=#F92672

" :GoDebug commands
if go#config#DebugDefaultHighlighting()
if go#config#HighlightDebug()
hi GoDebugBreakpoint term=standout ctermbg=117 ctermfg=0 guibg=#BAD4F5 guifg=Black
hi GoDebugCurrent term=reverse ctermbg=12 ctermfg=7 guibg=DarkBlue guifg=White
endif
Expand Down

0 comments on commit adc5838

Please sign in to comment.