Fixed bug with highlight colors not working
This commit is contained in:
parent
3934aba6c0
commit
16d8f388bd
@ -14,6 +14,7 @@ endfunction
|
|||||||
|
|
||||||
function! s:IndentGuidesEnable()
|
function! s:IndentGuidesEnable()
|
||||||
IndentGuidesDisable
|
IndentGuidesDisable
|
||||||
|
call s:IndentGuidesHighlightColors()
|
||||||
|
|
||||||
for level in range(1, g:IndentGuides_indent_levels)
|
for level in range(1, g:IndentGuides_indent_levels)
|
||||||
let group = 'IndentLevel' . ((level % 2 == 0) ? 'Even' : 'Odd')
|
let group = 'IndentLevel' . ((level % 2 == 0) ? 'Even' : 'Odd')
|
||||||
@ -41,6 +42,11 @@ function! s:IndentGuidesDisable()
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! s:IndentGuidesHighlightColors()
|
||||||
|
hi IndentLevelOdd guibg=#252525
|
||||||
|
hi IndentLevelEven guibg=#303030
|
||||||
|
endfunction
|
||||||
|
|
||||||
" Commands
|
" Commands
|
||||||
command! IndentGuidesToggle call s:IndentGuidesToggle()
|
command! IndentGuidesToggle call s:IndentGuidesToggle()
|
||||||
command! IndentGuidesEnable call s:IndentGuidesEnable()
|
command! IndentGuidesEnable call s:IndentGuidesEnable()
|
||||||
@ -50,10 +56,6 @@ command! IndentGuidesDisable call s:IndentGuidesDisable()
|
|||||||
let g:IndentGuides_indent_levels = 50
|
let g:IndentGuides_indent_levels = 50
|
||||||
let g:IndentGuides_debug = 0
|
let g:IndentGuides_debug = 0
|
||||||
|
|
||||||
" Default highlight colors
|
|
||||||
hi IndentLevelOdd guibg=#252525
|
|
||||||
hi IndentLevelEven guibg=#303030
|
|
||||||
|
|
||||||
" Default mapping
|
" Default mapping
|
||||||
nmap <Leader>ig :IndentGuidesToggle<CR>
|
nmap <Leader>ig :IndentGuidesToggle<CR>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user