Skip to content

Commit

Permalink
Use ripper-tags for tagbar of Ruby files
Browse files Browse the repository at this point in the history
  • Loading branch information
larrylv committed Aug 14, 2017
1 parent 690b298 commit 98b8de7
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,22 @@ augroup END
" Tagbar"{{{
nnoremap <F2> :TagbarToggle<CR>
let g:tagbar_sort = 0
let g:tagbar_iconchars = ['+', '-']
" let g:tagbar_iconchars = ['+', '-']
if executable('ripper-tags')
" Configure Tagbar to user ripper-tags with ruby
let g:tagbar_type_ruby = {
\ 'kinds' : [
\ 'm:modules',
\ 'c:classes',
\ 'f:methods',
\ 'F:singleton methods',
\ 'C:constants',
\ 'a:aliases'
\ ],
\ 'ctagsbin': 'ripper-tags',
\ 'ctagsargs': ['-f', '-']
\ }
endif
let g:tagbar_type_go = {
\ 'ctagstype' : 'go',
\ 'kinds' : [
Expand Down

0 comments on commit 98b8de7

Please sign in to comment.