dee8265206
Bundle an exuberant ctags definition for UltiSnips and tell TagBar how to find it.
27 lines
761 B
VimL
27 lines
761 B
VimL
" Set some sane defaults for snippet files
|
|
|
|
" Fold by syntax, but open all folds by default
|
|
setlocal foldmethod=syntax
|
|
setlocal foldlevel=99
|
|
|
|
setlocal commentstring=#%s
|
|
|
|
setlocal noexpandtab
|
|
setlocal autoindent nosmartindent nocindent
|
|
|
|
" Define match words for use with matchit plugin
|
|
" http://www.vim.org/scripts/script.php?script_id=39
|
|
if exists("loaded_matchit") && !exists("b:match_words")
|
|
let b:match_ignorecase = 0
|
|
let b:match_words = '^snippet\>:^endsnippet\>,^global\>:^endglobal\>,\${:}'
|
|
endif
|
|
|
|
" Add TagBar support
|
|
let g:tagbar_type_snippets = {
|
|
\ 'ctagstype': 'UltiSnips',
|
|
\ 'kinds': [
|
|
\ 's:snippets',
|
|
\ ],
|
|
\ 'deffile': expand('<sfile>:p:h:h') . '/ctags/UltiSnips.cnf',
|
|
\ }
|