Fix disabling autoindent, closes #541

This commit is contained in:
Adam Stankiewicz
2020-09-09 11:58:14 +02:00
parent 5e5d127eb8
commit a4a9481d37

View File

@@ -1777,10 +1777,7 @@ au BufNewFile,BufRead,StdinReadPost *
\ | call polyglot#Heuristics() | endif \ | call polyglot#Heuristics() | endif
if v:version < 700 || &cp if !has_key(s:disabled_packages, 'helm')
finish
endif
" 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
@@ -1931,6 +1928,7 @@ augroup polyglot
autocmd! autocmd!
autocmd FileType * call s:detect_indent() autocmd FileType * call s:detect_indent()
augroup END augroup END
endif
" restore Vi compatibility settings " restore Vi compatibility settings
let &cpo = s:cpo_save let &cpo = s:cpo_save