Merge branch 'master' of git://github.com/nathanaelkane/vim-indent-guides
This commit is contained in:
commit
f8c227fe78
@ -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