mirror of
https://github.com/Yggdroot/indentLine.git
synced 2026-10-20 04:47:07 +08:00
Keep default conceal values for excluded files
Setup will now check if the file is part of the included or excluded filetypes before changing the conceal values.
This commit is contained in:
1 parent
e2879c7e89
commit
428adbd3d9
1 file changed
+12
-12
+12
-12
@@ -105,18 +105,6 @@ endfunction
|
|||||||
|
|
||||||
"{{{1 function! s:Setup()
|
"{{{1 function! s:Setup()
|
||||||
function! s:Setup()
|
function! s:Setup()
|
||||||
if ! exists("g:indentLine_noConcealCursor")
|
|
||||||
setlocal concealcursor=inc
|
|
||||||
endif
|
|
||||||
setlocal conceallevel=2
|
|
||||||
|
|
||||||
if !&hidden || !exists("b:indentLine_set")
|
|
||||||
let b:indentLine_set = 1
|
|
||||||
|
|
||||||
if &filetype is# ""
|
|
||||||
call s:InitColor()
|
|
||||||
endif
|
|
||||||
|
|
||||||
if index(g:indentLine_fileTypeExclude, &filetype) isnot -1
|
if index(g:indentLine_fileTypeExclude, &filetype) isnot -1
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
@@ -131,6 +119,18 @@ function! s:Setup()
|
|||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
|
if ! exists("g:indentLine_noConcealCursor")
|
||||||
|
setlocal concealcursor=inc
|
||||||
|
endif
|
||||||
|
setlocal conceallevel=2
|
||||||
|
|
||||||
|
if !&hidden || !exists("b:indentLine_set")
|
||||||
|
let b:indentLine_set = 1
|
||||||
|
|
||||||
|
if &filetype is# ""
|
||||||
|
call s:InitColor()
|
||||||
|
endif
|
||||||
|
|
||||||
if ! exists("b:indentLine_enabled")
|
if ! exists("b:indentLine_enabled")
|
||||||
let b:indentLine_enabled = g:indentLine_enabled
|
let b:indentLine_enabled = g:indentLine_enabled
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in new issue
Block a user