Skip to content

Commit

Permalink
Add ability to disable highlights registration
Browse files Browse the repository at this point in the history
So we could tune up it in our custom colorschemes
  • Loading branch information
everzet committed Mar 5, 2013
1 parent c46cf29 commit 34879ec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion plugin/gitgutter.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 34879ec

Please sign in to comment.