summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-10-23 01:04:53 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-10-23 01:04:53 +0200
commit29ec69ffa095a16fe15e4c63c1a6ba90974efd74 (patch)
tree725f368ba111a8e6d4ede8cad18a93a2775b6a40
parent6636144497456510fb48a252c65462750cf36aeb (diff)
downloadvim-polyglot-4.15.1.tar.gz
vim-polyglot-4.15.1.zip
Set default tabstop to 2, but only if not changedv4.15.1
-rw-r--r--ftdetect/polyglot.vim4
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