mirror of
https://github.com/Yggdroot/indentLine.git
synced 2026-02-20 00:28:26 +08:00
Allow to exclude by buffer types (#235)
* Filter by buftype * Add docs * Typo
This commit is contained in:
committed by
Yggdroot
parent
86de3cdbda
commit
7a7e368205
@@ -19,6 +19,7 @@ let g:indentLine_enabled = get(g:, 'indentLine_enabled', 1)
|
||||
let g:indentLine_fileType = get(g:, 'indentLine_fileType', [])
|
||||
let g:indentLine_fileTypeExclude = get(g:, 'indentLine_fileTypeExclude', [])
|
||||
let g:indentLine_bufNameExclude = get(g:, 'indentLine_bufNameExclude', [])
|
||||
let g:indentLine_bufTypeExclude = get(g:, 'indentLine_bufTypeExclude', [])
|
||||
let g:indentLine_showFirstIndentLevel = get(g:, 'indentLine_showFirstIndentLevel', 0)
|
||||
let g:indentLine_maxLines = get(g:, 'indentLine_maxLines', 3000)
|
||||
let g:indentLine_setColors = get(g:, 'indentLine_setColors', 1)
|
||||
@@ -210,6 +211,10 @@ function! s:Filter()
|
||||
return 0
|
||||
endif
|
||||
|
||||
if index(g:indentLine_bufTypeExclude, &buftype) != -1
|
||||
return 0
|
||||
endif
|
||||
|
||||
if len(g:indentLine_fileType) != 0 && index(g:indentLine_fileType, &filetype) == -1
|
||||
return 0
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user