mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-10 12:33:51 -05:00
Allow 6-spaces indent and do not set tabstop if changed
This commit is contained in:
@@ -2722,7 +2722,7 @@ if !has_key(s:disabled_packages, 'autoindent')
|
||||
return 1
|
||||
elseif line[0] == " "
|
||||
let indent = len(matchstr(line, '^ *'))
|
||||
if indent < minindent && index([2, 3, 4, 8], indent) >= 0
|
||||
if indent < minindent && index([2, 3, 4, 6, 8], indent) >= 0
|
||||
let minindent = indent
|
||||
endif
|
||||
endif
|
||||
@@ -2731,7 +2731,9 @@ if !has_key(s:disabled_packages, 'autoindent')
|
||||
if minindent < 10
|
||||
setlocal expandtab
|
||||
let &l:shiftwidth=minindent
|
||||
if &tabstop == 8
|
||||
let &l:tabstop=minindent
|
||||
endif
|
||||
let b:sleuth_culprit .= ':' . i
|
||||
return 1
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user