mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
Set shiftwidth to tabstop if greather, fixes #648
Also should fix situations like in #654
This commit is contained in:
@@ -2678,6 +2678,10 @@ if !has_key(g:polyglot_is_disabled, 'autoindent')
|
||||
let &tabstop = 2
|
||||
endif
|
||||
|
||||
if &shiftwidth > &tabstop
|
||||
let &shiftwidth = &tabstop
|
||||
endif
|
||||
|
||||
let s:default_shiftwidth = &shiftwidth
|
||||
|
||||
func! s:get_shiftwidth(indents) abort
|
||||
|
||||
Reference in New Issue
Block a user