diff options
Diffstat (limited to 'ftdetect/polyglot.vim')
-rw-r--r-- | ftdetect/polyglot.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index a8a5c319..ac934d53 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -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 |