mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-09 20:13:51 -05:00
Set default tabstop to 2, but only if not changed
This commit is contained in:
@@ -2634,6 +2634,10 @@ if !has_key(s:disabled_packages, 'autoindent')
|
|||||||
" Code below re-implements sleuth for vim-polyglot
|
" Code below re-implements sleuth for vim-polyglot
|
||||||
let g:loaded_sleuth = 1
|
let g:loaded_sleuth = 1
|
||||||
|
|
||||||
|
if &tabstop == 8
|
||||||
|
let &tabstop = 2
|
||||||
|
endif
|
||||||
|
|
||||||
func! s:get_shiftwidth(indents) abort
|
func! s:get_shiftwidth(indents) abort
|
||||||
let shiftwidth = 0
|
let shiftwidth = 0
|
||||||
let max_count = 0
|
let max_count = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user