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.