mirror of
https://github.com/preservim/tagbar.git
synced 2024-11-23 10:41:49 +08:00
Improve HTML support with Universal Ctags, closes #317
This commit is contained in:
parent
d16ec1198b
commit
bcb042da56
|
@ -421,10 +421,19 @@ function! s:InitTypes() abort
|
|||
" HTML {{{3
|
||||
let type_html = s:TypeInfo.New()
|
||||
let type_html.ctagstype = 'html'
|
||||
let type_html.kinds = [
|
||||
\ {'short' : 'f', 'long' : 'JavaScript funtions', 'fold' : 0, 'stl' : 1},
|
||||
\ {'short' : 'a', 'long' : 'named anchors', 'fold' : 0, 'stl' : 1}
|
||||
\ ]
|
||||
if s:ctags_is_uctags
|
||||
let type_html.kinds = [
|
||||
\ {'short' : 'a', 'long' : 'named anchors', 'fold' : 0, 'stl' : 1},
|
||||
\ {'short' : 'h', 'long' : 'H1 headings', 'fold' : 0, 'stl' : 1},
|
||||
\ {'short' : 'i', 'long' : 'H2 headings', 'fold' : 0, 'stl' : 1},
|
||||
\ {'short' : 'j', 'long' : 'H3 headings', 'fold' : 0, 'stl' : 1},
|
||||
\ ]
|
||||
else
|
||||
let type_html.kinds = [
|
||||
\ {'short' : 'f', 'long' : 'JavaScript functions', 'fold' : 0, 'stl' : 1},
|
||||
\ {'short' : 'a', 'long' : 'named anchors', 'fold' : 0, 'stl' : 1}
|
||||
\ ]
|
||||
endif
|
||||
let s:known_types.html = type_html
|
||||
" Java {{{3
|
||||
let type_java = s:TypeInfo.New()
|
||||
|
|
Loading…
Reference in New Issue
Block a user