@@ -39,7 +39,7 @@ function! indent_guides#enable()
39
39
40
40
" loop through each indent level and define a highlight pattern
41
41
" will automagically figure out whether to use tabs or spaces
42
- for l: level in range (1 , s: indent_levels )
42
+ for l: level in range (s: start_level , s: indent_levels )
43
43
let l: group = ' IndentGuides' . ((l: level % 2 == 0 ) ? ' Even' : ' Odd' )
44
44
let l: pattern = ' ^\s\{' . (l: level * s: indent_size - s: indent_size ) . ' \}\zs'
45
45
let l: pattern .= ' \s\{' . s: guide_size . ' \}'
@@ -177,6 +177,7 @@ function! indent_guides#init_script_vars()
177
177
let s: color_hex_pat = g: indent_guides_color_hex_pattern
178
178
let s: color_hex_bg_pat = g: indent_guides_color_hex_guibg_pattern
179
179
let s: color_name_bg_pat = g: indent_guides_color_name_guibg_pattern
180
+ let s: start_level = g: indent_guides_start_level
180
181
181
182
if s: debug
182
183
echo ' s:indent_size = ' . s: indent_size
@@ -188,6 +189,7 @@ function! indent_guides#init_script_vars()
188
189
echo ' s:color_hex_pat = ' . s: color_hex_pat
189
190
echo ' s:color_hex_bg_pat = ' . s: color_hex_bg_pat
190
191
echo ' s:color_name_bg_pat = ' . s: color_name_bg_pat
192
+ echo ' s:start_level = ' . s: start_level
191
193
endif
192
194
endfunction
193
195
@@ -198,7 +200,7 @@ endfunction
198
200
" NOTE: Currently, this only works when soft-tabs are being used.
199
201
"
200
202
function ! indent_guides#calculate_guide_size ()
201
- let l: guide_size = g: indent_guides_indent_guide_size
203
+ let l: guide_size = g: indent_guides_guide_size
202
204
let l: indent_size = indent_guides#get_indent_size ()
203
205
204
206
if l: indent_size > 1 && l: guide_size >= 1
0 commit comments