dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 34d26dab6162c7923d5464ac6b620c548870a57a
parent 6226692bbb1296fcf120ca8aa2490cb6585885b9
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Wed,  9 Jan 2019 15:52:58 +0100

Added markdown syntax ctags

Both for vim-tagbar and for the ctags program


Former-commit-id: 89d7ba49f31a598e10ed8119886f400f32634e6a
Diffstat:
Mctags/ctags | 5+++++
Mvim/pluginconf.vimrc | 8++++++++
2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/ctags/ctags b/ctags/ctags @@ -11,3 +11,8 @@ --regex-Go=/func([ \t]+\([^)]+\))?[ \t]+([a-zA-Z0-9_]+)/\2/f,func/ --regex-Go=/var[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/v,var/ --regex-Go=/type[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/t,type/ +--langdef=markdown +--langmap=markdown:.mkd +--regex-markdown=/^#[ \t]+(.*)/\1/h,Heading_L1/ +--regex-markdown=/^##[ \t]+(.*)/\1/i,Heading_L2/ +--regex-markdown=/^###[ \t]+(.*)/\1/k,Heading_L3/ diff --git a/vim/pluginconf.vimrc b/vim/pluginconf.vimrc @@ -37,3 +37,11 @@ let g:tagbar_type_go = { \ 'ctagsbin' : 'gotags', \ 'ctagsargs' : '-sort -silent' \ } +let g:tagbar_type_markdown = { + \ 'ctagstype' : 'markdown', + \ 'kinds' : [ + \ 'h:Heading_L1', + \ 'i:Heading_L2', + \ 'k:Heading_L3' + \ ] +\ }