use mdctags.rs

Wed, 28 Jul 2021 01:18:10 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 28 Jul 2021 01:18:10 -0500
changeset 928
9674b3a2ad41
parent 927
6cdcce4f0abd
child 929
97b6cf0bd601

use mdctags.rs

.vim/plugin/tagbar-types.vim file | annotate | diff | comparison | revisions
--- 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',
+  \}
+\}

mercurial