mirror of
https://github.com/Yggdroot/indentLine.git
synced 2025-12-10 14:01:53 +08:00
Merge pull request #79 from charlesswartz/master
Keep default conceal values for excluded files
This commit is contained in:
@@ -116,9 +116,23 @@ endfunction
|
|||||||
|
|
||||||
"{{{1 function! s:Setup()
|
"{{{1 function! s:Setup()
|
||||||
function! s:Setup()
|
function! s:Setup()
|
||||||
if ! exists("g:indentLine_noConcealCursor")
|
if index(g:indentLine_fileTypeExclude, &filetype) isnot -1
|
||||||
setlocal concealcursor=inc
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if len(g:indentLine_fileType) isnot 0 && index(g:indentLine_fileType, &filetype) is -1
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
for name in g:indentLine_bufNameExclude
|
||||||
|
if matchstr(bufname(''), name) is bufname('')
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
|
||||||
|
if ! exists("g:indentLine_noConcealCursor")
|
||||||
|
setlocal concealcursor=inc
|
||||||
|
endif
|
||||||
setlocal conceallevel=2
|
setlocal conceallevel=2
|
||||||
|
|
||||||
if !&hidden || !exists("b:indentLine_set")
|
if !&hidden || !exists("b:indentLine_set")
|
||||||
@@ -128,20 +142,6 @@ function! s:Setup()
|
|||||||
call s:InitColor()
|
call s:InitColor()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if index(g:indentLine_fileTypeExclude, &filetype) isnot -1
|
|
||||||
return
|
|
||||||
endif
|
|
||||||
|
|
||||||
if len(g:indentLine_fileType) isnot 0 && index(g:indentLine_fileType, &filetype) is -1
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
for name in g:indentLine_bufNameExclude
|
|
||||||
if matchstr(bufname(''), name) is bufname('')
|
|
||||||
return
|
|
||||||
endif
|
|
||||||
endfor
|
|
||||||
|
|
||||||
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