# HG changeset patch # User Meredith Howard # Date 1590307474 18000 # Node ID 9b6eec375e56da8f319c2d2fbe519da565cbe0e8 # Parent b3beb2c34536987528b1f6cee941ba28e08f6c6e Add gotags integration 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 @@ -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' +\ }