Synchronize shiftwidth with tabstop by default

This commit is contained in:
Adam Stankiewicz
2020-09-04 18:29:53 +02:00
parent b2640b5b76
commit 262960fa22
4 changed files with 18 additions and 76 deletions

View File

@@ -19,6 +19,11 @@ endif
let g:loaded_sleuth = 1
let g:loaded_polyglot = 1
" Makes shiftwidth to be synchronized with tabstop by default
if &shiftwidth == &tabstop
let &shiftwidth = 0
endif
function! s:guess(lines) abort
let options = {}
let ccomment = 0