Support TagBar for snippets files
Bundle an exuberant ctags definition for UltiSnips and tell TagBar how to find it.
This commit is contained in:
parent
d1f6f7ed81
commit
dee8265206
3
ctags/UltiSnips.cnf
Normal file
3
ctags/UltiSnips.cnf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
--langdef=UltiSnips
|
||||||
|
--langmap=UltiSnips:.snippets
|
||||||
|
--regex-UltiSnips=/^snippet (.*)/\1/s,snippet/
|
@ -15,3 +15,12 @@ if exists("loaded_matchit") && !exists("b:match_words")
|
|||||||
let b:match_ignorecase = 0
|
let b:match_ignorecase = 0
|
||||||
let b:match_words = '^snippet\>:^endsnippet\>,^global\>:^endglobal\>,\${:}'
|
let b:match_words = '^snippet\>:^endsnippet\>,^global\>:^endglobal\>,\${:}'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Add TagBar support
|
||||||
|
let g:tagbar_type_snippets = {
|
||||||
|
\ 'ctagstype': 'UltiSnips',
|
||||||
|
\ 'kinds': [
|
||||||
|
\ 's:snippets',
|
||||||
|
\ ],
|
||||||
|
\ 'deffile': expand('<sfile>:p:h:h') . '/ctags/UltiSnips.cnf',
|
||||||
|
\ }
|
||||||
|
Loading…
Reference in New Issue
Block a user