Skip to content

Commit

Permalink
[wip] [experimental] Add gtags support
Browse files Browse the repository at this point in the history
  • Loading branch information
5t111111 committed Jul 14, 2016
1 parent ce96c1f commit 9809c76
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ Plug 'Shougo/neomru.vim'
Plug 'Shougo/unite.vim'
Plug 'basyura/unite-rails'
Plug 'Shougo/unite-outline'
Plug '5t111111/unite-gtags', { 'branch': 'gem-support' }
Plug 'ctrlpvim/ctrlp.vim'
Plug 'bling/vim-airline'
Plug 'easymotion/vim-easymotion'
Expand Down Expand Up @@ -215,6 +216,19 @@ nnoremap <silent> [rails]h :<C-u>Unite<Space>rails/helper<Return>
" unite-outline
nnoremap <silent> [unite]o :<C-u>Unite<Space>-vertical<Space>-no-quit<Space>-direction=botright<Space>-winwidth=35<Space>outline<Return>
" unite-gtags
let g:unite_source_gtags_project_config = {
\ '_': {
\ 'through_all_tags': 1
\ }
\ }

nnoremap [gtags] <Nop>
nmap <Leader>t [gtags]
nnoremap <silent> [gtags]t :<C-u>Unite<Space>gtags/context<Return>
nnoremap <silent> [gtags]d :<C-u>Unite<Space>gtags/def<Return>
nnoremap <silent> [gtags]r :<C-u>Unite<Space>gtags/ref<Return>
" CtrlP
if get(g:, 'load_cpsm')
let g:ctrlp_match_func = { 'match': 'cpsm#CtrlPMatch' }
Expand Down

0 comments on commit 9809c76

Please sign in to comment.