Sun, 24 May 2020 03:04:34 -0500
Add gotags integration
.vim/plugin/tagbar-types.vim | file | annotate | diff | comparison | revisions |
--- a/.vim/plugin/tagbar-types.vim +++ b/.vim/plugin/tagbar-types.vim @@ -35,3 +35,32 @@ let g:tagbar_type_elixir = { \ 'e:exceptions', \ ], \ } + +" https://github.com/jstemmer/gotags +let g:tagbar_type_go = { + \ 'ctagstype' : 'go', + \ 'kinds' : [ + \ 'p:package', + \ 'i:imports:1', + \ 'c:constants', + \ 'v:variables', + \ 't:types', + \ 'n:interfaces', + \ 'w:fields', + \ 'e:embedded', + \ 'm:methods', + \ 'r:constructor', + \ 'f:functions' + \ ], + \ 'sro' : '.', + \ 'kind2scope' : { + \ 't' : 'ctype', + \ 'n' : 'ntype' + \ }, + \ 'scope2kind' : { + \ 'ctype' : 't', + \ 'ntype' : 'n' + \ }, + \ 'ctagsbin' : 'gotags', + \ 'ctagsargs' : '-sort -silent' +\ }