mirror of
https://github.com/preservim/vim-indent-guides.git
synced 2025-11-11 11:23:47 -05:00
Set size of indent guide to tabstop value when noexpandtab is used
This commit is contained in:
@@ -180,7 +180,7 @@ endfunction
|
|||||||
" plugin is enabled.
|
" plugin is enabled.
|
||||||
"
|
"
|
||||||
function! indent_guides#init_script_vars()
|
function! indent_guides#init_script_vars()
|
||||||
if &l:shiftwidth > 0
|
if &l:shiftwidth > 0 && &l:expandtab
|
||||||
let s:indent_size = &l:shiftwidth
|
let s:indent_size = &l:shiftwidth
|
||||||
else
|
else
|
||||||
let s:indent_size = &l:tabstop
|
let s:indent_size = &l:tabstop
|
||||||
|
|||||||
Reference in New Issue
Block a user