mirror of
https://github.com/preservim/vim-indent-guides.git
synced 2025-11-11 19:33:47 -05:00
Added a flag for ignoring spaces
Added flag g:indent_guides_enable_on_vim_startup Controls whether spaces are considered for indent calculating
This commit is contained in:
@@ -46,7 +46,9 @@ function! indent_guides#enable()
|
||||
let l:hard_pattern = indent_guides#indent_highlight_pattern('\t', l:column_start, s:indent_size)
|
||||
|
||||
" define the higlight patterns and add to matches list
|
||||
call add(w:indent_guides_matches, matchadd(l:group, l:soft_pattern))
|
||||
if g:indent_guides_space_guides
|
||||
call add(w:indent_guides_matches, matchadd(l:group, l:soft_pattern))
|
||||
end
|
||||
call add(w:indent_guides_matches, matchadd(l:group, l:hard_pattern))
|
||||
endfor
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user