.config/nvim/after/plugin/tagbar.vim

changeset 1029
9265f8508e4c
equal deleted inserted replaced
1028:77e65ab97892 1029:9265f8508e4c
1 " adapted from https://gist.github.com/jbolila/7598018
2 let g:tagbar_type_perl = {
3 \ 'ctagstype' : 'Perl',
4 \ 'kinds' : [
5 \ 'p:packages:1:0',
6 \ 'u:uses:1:0',
7 \ 'r:requires:1:0',
8 \ 'e:extends',
9 \ 'w:roles',
10 \ 'o:ours:1:0',
11 \ 'c:constants:1:0',
12 \ 'f:formats:1:0',
13 \ 'a:attributes',
14 \ 'm:methods',
15 \ 's:subroutines',
16 \ 'x:modifier',
17 \ 'l:aliases',
18 \ 'd:pod:1:0',
19 \ ],
20 \ 'deffile' : stdpath("config") . '/tagbar/perl.cnf'
21 \ }
22
23 let g:tagbar_type_elixir = {
24 \ 'ctagstype' : 'Elixir',
25 \ 'kinds' : [
26 \ 'm:modules:1:0',
27 \ 'r:records',
28 \ 'f:functions',
29 \ 'a:macros',
30 \ 'o:operators',
31 \ 'p:protocols',
32 \ 'i:implementations',
33 \ 'd:delegates',
34 \ 'c:callbacks',
35 \ 'e:exceptions',
36 \ ],
37 \ }
38
39 " https://github.com/jstemmer/gotags
40 let g:tagbar_type_go = {
41 \ 'ctagstype' : 'go',
42 \ 'kinds' : [
43 \ 'p:package',
44 \ 'i:imports:1',
45 \ 'c:constants',
46 \ 'v:variables',
47 \ 't:types',
48 \ 'n:interfaces',
49 \ 'w:fields',
50 \ 'e:embedded',
51 \ 'm:methods',
52 \ 'r:constructor',
53 \ 'f:functions'
54 \ ],
55 \ 'sro' : '.',
56 \ 'kind2scope' : {
57 \ 't' : 'ctype',
58 \ 'n' : 'ntype'
59 \ },
60 \ 'scope2kind' : {
61 \ 'ctype' : 't',
62 \ 'ntype' : 'n'
63 \ },
64 \ 'ctagsbin' : 'gotags',
65 \ 'ctagsargs' : '-sort -silent'
66 \ }
67
68 " https://github.com/wsdjeg/mdctags.rs
69 let g:tagbar_type_markdown = {
70 \ 'ctagsbin' : 'mdctags',
71 \ 'ctagsargs' : '',
72 \ 'sort' : 0,
73 \ 'kinds' : [
74 \ 'a:h1:0:0',
75 \ 'b:h2:0:0',
76 \ 'c:h3:0:0',
77 \ 'd:h4:0:0',
78 \ 'e:h5:0:0',
79 \ 'f:h6:0:0',
80 \ ],
81 \ 'sro' : '::',
82 \ 'kind2scope' : {
83 \ 'a' : 'h1',
84 \ 'b' : 'h2',
85 \ 'c' : 'h3',
86 \ 'd' : 'h4',
87 \ 'e' : 'h5',
88 \ 'f' : 'h6',
89 \ },
90 \ 'scope2kind' : {
91 \ 'h1' : 'a',
92 \ 'h2' : 'b',
93 \ 'h3' : 'c',
94 \ 'h4' : 'd',
95 \ 'h5' : 'e',
96 \ 'h6' : 'f',
97 \}
98 \}

mercurial