mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 19:40:27 +01:00
Allow ignoring specific files, closes #169
This commit is contained in:
@@ -3590,6 +3590,11 @@ function! s:IsValidFile(fname, ftype) abort
|
||||
return 0
|
||||
endif
|
||||
|
||||
if getbufvar(a:fname, 'tagbar_ignore') == 1
|
||||
call s:LogDebugMessage('File is marked as ignored')
|
||||
return 0
|
||||
endif
|
||||
|
||||
if &previewwindow
|
||||
call s:LogDebugMessage('In preview window')
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user