Add ability to disable highlights registration

So we could tune up it in our custom colorschemes
This commit is contained in:
Konstantin Kudryashov
2013-03-05 13:54:00 +01:00
parent c46cf29392
commit 34879ec3c8

View File

@@ -9,12 +9,19 @@ if !exists('g:gitgutter_enabled')
let g:gitgutter_enabled = 1
endif
if !exists('g:gitgutter_highlights')
let g:gitgutter_highlights = 1
endif
function! s:init()
if !exists('g:gitgutter_initialised')
let s:highlight_lines = 0
call s:define_highlights()
call s:define_signs()
if g:gitgutter_highlights
call s:define_highlights()
endif
" Vim doesn't namespace sign ids so every plugin shares the same
" namespace. Sign ids are simply integers so to avoid clashes with other
" signs we guess at a clear run.