switch to tagbar
This commit is contained in:
parent
b828abb7ff
commit
6d00f0f1c6
6 changed files with 35 additions and 6052 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -76,3 +76,6 @@
|
|||
[submodule ".vim/bundle/vim-bufferline"]
|
||||
path = .vim/bundle/vim-bufferline
|
||||
url = https://github.com/bling/vim-bufferline
|
||||
[submodule ".vim/bundle/tagbar"]
|
||||
path = .vim/bundle/tagbar
|
||||
url = git://github.com/majutsushi/tagbar
|
||||
|
|
|
|||
1
.vim/bundle/tagbar
Submodule
1
.vim/bundle/tagbar
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 97d7b04bdd10cae424f8cb6be50ae7893b106ff4
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
27
.vim/plugin/gotags.vim
Normal file
27
.vim/plugin/gotags.vim
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
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'
|
||||
\ }
|
||||
5
.vimrc
5
.vimrc
|
|
@ -155,6 +155,8 @@ let g:NERDTreeDirArrows=0
|
|||
" * Tagbar plugin settings
|
||||
let g:tagbar_width = 40
|
||||
let g:tagbar_autofocus = 1
|
||||
let g:tagbar_autoclose = 1
|
||||
let g:tagbar_compact = 1
|
||||
|
||||
" * Taglist plugin settings (deprecated)
|
||||
let Tlist_GainFocus_On_ToggleOpen = 1
|
||||
|
|
@ -369,7 +371,8 @@ endfunction
|
|||
" I don't know how I came up with gt for opening the tree, but it stuck.
|
||||
nmap gt :NERDTreeToggle<CR>
|
||||
" The same for the TagList, useful for large C files.
|
||||
nmap gb :TlistToggle<CR>
|
||||
"nmap gb :TlistToggle<CR>
|
||||
nmap gb :TagbarToggle<CR>
|
||||
"nnoremap gx :Kwbd<CR>
|
||||
" :Kwbd (defined below) really kills a buffer dead, and closes the window.
|
||||
" gK is similar.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue