diff --git a/autoload/indent_guides.vim b/autoload/indent_guides.vim index 366e3f9..1c68a7c 100644 --- a/autoload/indent_guides.vim +++ b/autoload/indent_guides.vim @@ -106,13 +106,13 @@ endfunction " colorscheme is being used. " function! indent_guides#lighten_or_darken_color(color) - let percent = g:indent_guides_auto_colors_change_percent + let percent = g:indent_guides_color_change_percent - let new_color = (&g:background == 'dark') ? - \ color_helper#hex_color_lighten(a:color, percent) : - \ color_helper#hex_color_darken (a:color, percent) + let new_color = (&g:background == 'dark') ? + \ color_helper#hex_color_lighten(a:color, percent) : + \ color_helper#hex_color_darken (a:color, percent) - return new_color + return new_color endfunction " diff --git a/doc/indent_guides.txt b/doc/indent_guides.txt index 4d4b531..1d88b53 100644 --- a/doc/indent_guides.txt +++ b/doc/indent_guides.txt @@ -56,12 +56,12 @@ Default: 1. Values: 0 or 1. let g:indent_guides_auto_colors = 1 < - *'indent_guides_auto_colors_change_percent'* + *'indent_guides_color_change_percent'* Use this option to control the percent at which the highlight colors will be lightened or darkened. -Default: 0.20. Values: between 0 and 1. +Default: 0.05. Values: between 0 and 1. > - let g:indent_guides_auto_colors_change_percent = 0.20 + let g:indent_guides_color_change_percent = 0.05 < ============================================================================== diff --git a/plugin/indent_guides.vim b/plugin/indent_guides.vim index f8f454d..b4085b5 100644 --- a/plugin/indent_guides.vim +++ b/plugin/indent_guides.vim @@ -27,9 +27,9 @@ let g:indent_guides_auto_colors = \ exists('g:indent_guides_auto_colors') ? \ g:indent_guides_auto_colors : 1 -let g:indent_guides_auto_colors_change_percent = - \ exists('g:indent_guides_auto_colors_change_percent') ? - \ g:indent_guides_auto_colors_change_percent : 0.20 +let g:indent_guides_color_change_percent = + \ exists('g:indent_guides_color_change_percent') ? + \ g:indent_guides_color_change_percent : 0.05 let g:indent_guides_debug = \ exists('g:indent_guides_debug') ?