Merge pull request #2326 from kdwarn/tagbar-search-method

Add searchmethod setting for tagbar extension
This commit is contained in:
Christian Brabandt
2021-02-05 08:19:55 +01:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ function! airline#extensions#tagbar#currenttag()
endif
" function tagbar#currenttag does not exist, if filetype is not enabled
if s:airline_tagbar_last_lookup_time != localtime() && exists("*tagbar#currenttag")
let s:airline_tagbar_last_lookup_val = tagbar#currenttag('%s', '', s:flags)
let s:airline_tagbar_last_lookup_val = tagbar#currenttag('%s', '', s:flags, get(g:, 'airline#extensions#tagbar#searchmethod', ''))
let s:airline_tagbar_last_lookup_time = localtime()
endif
return s:airline_tagbar_last_lookup_val