From 209e9b302aa2aa3d16d044251a440a98471150c6 Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Thu, 21 Dec 2017 18:16:38 -0800 Subject: [PATCH] Add gotags support --- config/nvim/init.vim | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) 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' + \ }