# HG changeset patch # User Meredith Howard # Date 1627453090 18000 # Node ID 9674b3a2ad41fef345000374a1c092d9cb404c52 # Parent 6cdcce4f0abd07d021748dd88f71cf4c2df89485 use mdctags.rs diff --git a/.vim/plugin/tagbar-types.vim b/.vim/plugin/tagbar-types.vim --- a/.vim/plugin/tagbar-types.vim +++ b/.vim/plugin/tagbar-types.vim @@ -64,3 +64,35 @@ let g:tagbar_type_go = { \ 'ctagsbin' : 'gotags', \ 'ctagsargs' : '-sort -silent' \ } + +" https://github.com/wsdjeg/mdctags.rs +let g:tagbar_type_markdown = { + \ 'ctagsbin' : 'mdctags', + \ 'ctagsargs' : '', + \ 'sort' : 0, + \ 'kinds' : [ + \ 'a:h1:0:0', + \ 'b:h2:0:0', + \ 'c:h3:0:0', + \ 'd:h4:0:0', + \ 'e:h5:0:0', + \ 'f:h6:0:0', + \ ], + \ 'sro' : '::', + \ 'kind2scope' : { + \ 'a' : 'h1', + \ 'b' : 'h2', + \ 'c' : 'h3', + \ 'd' : 'h4', + \ 'e' : 'h5', + \ 'f' : 'h6', + \ }, + \ 'scope2kind' : { + \ 'h1' : 'a', + \ 'h2' : 'b', + \ 'h3' : 'c', + \ 'h4' : 'd', + \ 'h5' : 'e', + \ 'h6' : 'f', + \} +\}