mirror of
https://github.com/Yggdroot/indentLine.git
synced 2025-12-08 21:14:45 +08:00
Merge pull request #145 from Yggdroot/revert-144-on-syntax
Revert "Fix indendLine doesn't work with 'syntax' option change"
This commit is contained in:
@@ -157,11 +157,6 @@ function! s:Setup()
|
|||||||
call s:InitColor()
|
call s:InitColor()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call s:EnableFeature()
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
"{{{1 function! s:EnableFeature()
|
|
||||||
function! s:EnableFeature() abort
|
|
||||||
if g:indentLine_enabled
|
if g:indentLine_enabled
|
||||||
call s:IndentLinesEnable()
|
call s:IndentLinesEnable()
|
||||||
endif
|
endif
|
||||||
@@ -204,8 +199,7 @@ endfunction
|
|||||||
augroup indentLine
|
augroup indentLine
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd BufWinEnter * call <SID>Setup()
|
autocmd BufWinEnter * call <SID>Setup()
|
||||||
autocmd Syntax * unlet! b:indentLine_enabled | call <SID>EnableFeature()
|
autocmd BufRead,BufNewFile,ColorScheme,Syntax * call <SID>InitColor()
|
||||||
autocmd BufRead,BufNewFile,ColorScheme * call <SID>InitColor()
|
|
||||||
autocmd BufUnload * unlet! b:indentLine_enabled
|
autocmd BufUnload * unlet! b:indentLine_enabled
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user