summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/polyglot.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/polyglot.vim b/plugin/polyglot.vim
index db2976e6..ccdef112 100644
--- a/plugin/polyglot.vim
+++ b/plugin/polyglot.vim
@@ -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