1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-18 12:00:23 +01:00

Check whether filetype detection is turned on

This commit is contained in:
Jan Larres
2011-05-07 18:13:00 +12:00
parent 1a77a1e9c6
commit c33b0409cd

View File

@@ -51,6 +51,16 @@ else
endif
endif
redir => s:ftype_out
silent filetype
redir END
if s:ftype_out !~# 'detection:ON'
echomsg 'Tagbar: Filetype detection is turned off, skipping plugin'
unlet s:ftype_out
finish
endif
unlet s:ftype_out
let g:loaded_tagbar = 1
if !exists('g:tagbar_left')