From 402e3e117fc7b47e43dbb87c51064daae3bc3bf3 Mon Sep 17 00:00:00 2001 From: David Hegland Date: Tue, 15 Aug 2023 15:21:44 -0500 Subject: [PATCH] Add native bibtex support (#857) --- autoload/tagbar/types/uctags.vim | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/autoload/tagbar/types/uctags.vim b/autoload/tagbar/types/uctags.vim index 1a981438..34ea6739 100644 --- a/autoload/tagbar/types/uctags.vim +++ b/autoload/tagbar/types/uctags.vim @@ -187,6 +187,28 @@ function! tagbar#types#uctags#init(supported_types) abort \ {'short' : 'v', 'long' : 'patterns', 'fold' : 0, 'stl' : 1} \ ] let types.beta = type_beta + " BibTeX {{{1 + let type_bibtex = tagbar#prototypes#typeinfo#new() + let type_bibtex.ctagstype = 'bibtex' + let type_bibtex.kinds = [ + \ {'short' : 'a', 'long' : 'article', 'fold' : 0, 'stl' : 0}, + \ {'short' : 'b', 'long' : 'book', 'fold' : 0, 'stl' : 0}, + \ {'short' : 'B', 'long' : 'booklet', 'fold' : 0, 'stl' : 0}, + \ {'short' : 'c', 'long' : 'conference', 'fold' : 0, 'stl' : 0}, + \ {'short' : 'i', 'long' : 'inbook', 'fold' : 0, 'stl' : 0}, + \ {'short' : 'I', 'long' : 'incollection', 'fold' : 0, 'stl' : 0}, + \ {'short' : 'j', 'long' : 'inproceedings', 'fold' : 0, 'stl' : 0}, + \ {'short' : 'm', 'long' : 'manual', 'fold' : 0, 'stl' : 0}, + \ {'short' : 'M', 'long' : 'mastersthesis', 'fold' : 0, 'stl' : 0}, + \ {'short' : 'n', 'long' : 'misc', 'fold' : 0, 'stl' : 0}, + \ {'short' : 'p', 'long' : 'phdthesis', 'fold' : 0, 'stl' : 0}, + \ {'short' : 'P', 'long' : 'proceedings', 'fold' : 0, 'stl' : 0}, + \ {'short' : 's', 'long' : 'string', 'fold' : 0, 'stl' : 0}, + \ {'short' : 't', 'long' : 'techreport', 'fold' : 0, 'stl' : 0}, + \ {'short' : 'u', 'long' : 'unpublished', 'fold' : 0, 'stl' : 0}, + \ ] + let types.bibtex = type_bibtex + let types.bib = type_bibtex " C {{{1 let type_c = tagbar#prototypes#typeinfo#new() let type_c.ctagstype = 'c'