From 34879ec3c8b5342003075d77cff0e6cf3cb60e1b Mon Sep 17 00:00:00 2001 From: Konstantin Kudryashov Date: Tue, 5 Mar 2013 13:54:00 +0100 Subject: [PATCH] Add ability to disable highlights registration So we could tune up it in our custom colorschemes --- plugin/gitgutter.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index a11a8a8..d6b31a5 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -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.