Skip to content

Commit de2e0bd

Browse files
committed
Tagbar setup for Ansible playbooks
1 parent dec7a77 commit de2e0bd

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.ctags

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
--regex-make=/^\s*([^#][^:]*):/\1/t,target/
77

8+
--langdef=ansible
9+
--langmap=ansible:.yml
10+
--regex-ansible=/^\s*- name:(.*)/\1/t,task/
11+
812
--langdef=markdown
913
--langmap=markdown:.mkd
1014
--regex-markdown=/^#[ \t]+(.*)/\1/h,Heading_L1/

.vimrc

+7
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ Plugin 'tomtom/tcomment_vim'
5757
Plugin 'majutsushi/tagbar'
5858
" Tagbar {{{
5959
nmap <F8> :TagbarToggle<CR>
60+
let g:tagbar_type_ansible = {
61+
\ 'ctagstype' : 'ansible',
62+
\ 'kinds' : [
63+
\ 't:tasks'
64+
\ ],
65+
\ 'sort' : 0
66+
\ }
6067
let g:tagbar_type_make = {
6168
\ 'kinds':[
6269
\ 'm:macros',

0 commit comments

Comments
 (0)