mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 12:03:48 -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
|
let g:gitgutter_enabled = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if !exists('g:gitgutter_highlights')
|
||||||
|
let g:gitgutter_highlights = 1
|
||||||
|
endif
|
||||||
|
|
||||||
function! s:init()
|
function! s:init()
|
||||||
if !exists('g:gitgutter_initialised')
|
if !exists('g:gitgutter_initialised')
|
||||||
let s:highlight_lines = 0
|
let s:highlight_lines = 0
|
||||||
call s:define_highlights()
|
|
||||||
call s:define_signs()
|
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
|
" Vim doesn't namespace sign ids so every plugin shares the same
|
||||||
" namespace. Sign ids are simply integers so to avoid clashes with other
|
" namespace. Sign ids are simply integers so to avoid clashes with other
|
||||||
" signs we guess at a clear run.
|
" signs we guess at a clear run.
|
||||||
|
|||||||
Reference in New Issue
Block a user