diff --git a/config/nvim/init.vim b/config/nvim/init.vim index 2f4ed01..0976fdc 100644 --- a/config/nvim/init.vim +++ b/config/nvim/init.vim @@ -137,3 +137,32 @@ let g:syntastic_aggregate_errors = 1 let g:syntastic_ruby_checkers = ['rubocop'] let g:syntastic_error_symbol = "\u2717" let g:syntastic_warning_symbol = "\uFE0E" + +" Tagbar +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' + \ }