From 1c8feee61fb748a5193cc91e287b6ec99737a9fb Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Thu, 5 Jan 2017 17:12:33 +1300 Subject: [PATCH] Skip languages that are disabled in ctags --- autoload/tagbar.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 9ffc08f..5371e54 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -1273,7 +1273,9 @@ function! s:GetSupportedFiletypes() abort let types = split(ctags_output, '\n\+') for type in types - let s:ctags_types[tolower(type)] = 1 + if match(type, '\[disabled\]') == -1 + let s:ctags_types[tolower(type)] = 1 + endif endfor let s:checked_ctags_types = 1