mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 19:43:47 -05:00
Add ability to disable highlights registration
So we could tune up it in our custom colorschemes
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user