summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-04 18:29:53 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-04 18:29:53 +0200
commit262960fa223139eb5e02647e77af6bac13a17066 (patch)
treeb4663916c7c706e5b53ea93da9704e0d4757632e /plugin
parentb2640b5b760e6fc68b8cc49d3c8bab6cdef4f889 (diff)
downloadvim-polyglot-4.9.0.tar.gz
vim-polyglot-4.9.0.zip
Synchronize shiftwidth with tabstop by defaultv4.9.0
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