mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-10 20:43:52 -05:00
Fix disabling autoindent, closes #541
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user