mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-20 05:46:15 +08:00
Add native bibtex support (#857)
This commit is contained in:
parent
be56353975
commit
402e3e117f
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue
Block a user