Skip to content

Commit 534d948

Browse files
author
Quinn Strahl
committed
Improve highlight configurability
- Use separate highlight groups for `texthl` and `linehl` in the `current` and `breakpt` `:sign` definitions - Change default GUI highlighting to be like cterm highlighting
1 parent 3883b30 commit 534d948

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

plugin/vdebug.vim

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,12 @@ command! -nargs=? VdebugEval python debugger.handle_eval(<q-args>)
123123
command! -nargs=+ -complete=customlist,s:OptionNames VdebugOpt python debugger.handle_opt(<f-args>)
124124

125125
" Signs and highlighted lines for breakpoints, etc.
126-
sign define current text=-> texthl=DbgCurrent linehl=DbgCurrent
127-
sign define breakpt text=B> texthl=DbgBreakPt linehl=DbgBreakPt
128-
hi default DbgCurrent term=reverse ctermfg=White ctermbg=Red gui=reverse
129-
hi default DbgBreakPt term=reverse ctermfg=White ctermbg=Green gui=reverse
126+
sign define current text=-> texthl=DbgCurrentSign linehl=DbgCurrentLine
127+
sign define breakpt text=B> texthl=DbgBreakptSign linehl=DbgBreakptLine
128+
hi default DbgCurrentLine term=reverse ctermfg=White ctermbg=Red guifg=#ffffff guibg=#ff0000
129+
hi default DbgCurrentSign term=reverse ctermfg=White ctermbg=Red guifg=#ffffff guibg=#ff0000
130+
hi default DbgBreakptLine term=reverse ctermfg=White ctermbg=Green guifg=#ffffff guibg=#00ff00
131+
hi default DbgBreakptSign term=reverse ctermfg=White ctermbg=Green guifg=#ffffff guibg=#00ff00
130132

131133
function! s:OptionNames(A,L,P)
132134
let arg_to_cursor = strpart(a:L,10,a:P)

0 commit comments

Comments
 (0)