mirror of
https://github.com/spf13/spf13-vim.git
synced 2024-09-21 15:37:10 +00:00
Adding golang support for tagbar
Requires gotags to be installed
This commit is contained in:
parent
f0f95eb22a
commit
a8c9260a84
15
.vimrc
15
.vimrc
@ -422,6 +422,21 @@
|
||||
|
||||
" TagBar {
|
||||
nnoremap <silent> <leader>tt :TagbarToggle<CR>
|
||||
|
||||
" If using go please install the gotags program using the following
|
||||
" go install github.com/jstemmer/gotags
|
||||
" And make sure gotags is in your path
|
||||
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'
|
||||
\ }
|
||||
"}
|
||||
|
||||
" PythonMode {
|
||||
|
Loading…
Reference in New Issue
Block a user