Skip to content

Commit

Permalink
Set default tabstop to 2, but only if not changed
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerun committed Oct 22, 2020
1 parent 6636144 commit 29ec69f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ftdetect/polyglot.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29ec69f

Please sign in to comment.