Skip to content

Commit

Permalink
add yaml / salt ctags support
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.sixfeetup.com/svn/private/claytron/dotfiles/trunk@49150 7abc7aa1-7e52-db11-9331-00508bd72530
  • Loading branch information
claytron committed Nov 18, 2014
1 parent 5e83e20 commit 379c1ef
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .ctags
Expand Up @@ -42,3 +42,8 @@
--regex-markdown=/^#{5} (.*)(#{5})?/\1/5,header5/
--regex-markdown=/^#{6} (.*)(#{6})?/\1/6,header6/
--regex-markdown=/^#{7} (.*)(#{7})?/\1/7,header7/

--langdef=yaml
--langmap=yaml:.yml.sls
--regex-yaml=/^([a-zA-Z0-9_\/-]+):/\1/d,definition/
--regex-yaml=/.*- name: (.*)/\1/n,name/
15 changes: 15 additions & 0 deletions .vimrc
Expand Up @@ -918,6 +918,21 @@ let g:tagbar_type_markdown = {
\ ]
\ }

let g:tagbar_type_yaml = {
\ 'ctagstype': 'yaml',
\ 'kinds': [
\ 'd:definition',
\ 'n:name'
\ ]
\ }

let g:tagbar_type_sls = {
\ 'ctagstype': 'yaml',
\ 'kinds': [
\ 'd:definition',
\ 'n:name'
\ ]
\ }

" VCSCommand {{{2
" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 379c1ef

Please sign in to comment.