Skip to content

Commit

Permalink
Add native bibtex support (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
raven42 committed Aug 15, 2023
1 parent be56353 commit 402e3e1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions autoload/tagbar/types/uctags.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 402e3e1

Please sign in to comment.