diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-23 01:04:53 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-23 01:04:53 +0200 |
commit | 29ec69ffa095a16fe15e4c63c1a6ba90974efd74 (patch) | |
tree | 725f368ba111a8e6d4ede8cad18a93a2775b6a40 /ftdetect | |
parent | 6636144497456510fb48a252c65462750cf36aeb (diff) | |
download | vim-polyglot-4.15.1.tar.gz vim-polyglot-4.15.1.zip |
Set default tabstop to 2, but only if not changedv4.15.1
Diffstat (limited to 'ftdetect')
-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 175575ba..6d495073 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -2634,6 +2634,10 @@ if !has_key(s:disabled_packages, 'autoindent') " Code below re-implements sleuth for vim-polyglot let g:loaded_sleuth = 1 + if &tabstop == 8 + let &tabstop = 2 + endif + func! s:get_shiftwidth(indents) abort let shiftwidth = 0 let max_count = 0 |