Set default tabstop to 2, but only if not changed

This commit is contained in:
Adam Stankiewicz
2020-10-23 01:04:53 +02:00
parent 6636144497
commit 29ec69ffa0

View File

@@ -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