aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vim/after/plugin/tagbar.vim26
1 files changed, 26 insertions, 0 deletions
diff --git a/.vim/after/plugin/tagbar.vim b/.vim/after/plugin/tagbar.vim
index 28faf47..67a9ba8 100644
--- a/.vim/after/plugin/tagbar.vim
+++ b/.vim/after/plugin/tagbar.vim
@@ -2,3 +2,29 @@ let g:tagbar_autoclose = 1
let g:tagbar_autofocus = 1
nnoremap <leader><leader>s :TagbarToggle<CR>
+
+let g:tagbar_type_go = {
+ \ 'ctagstype': 'go',
+ \ 'kinds': [
+ \ 'p:package',
+ \ 'i:imports',
+ \ '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'
+ \ }
+ \ }