Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<C-]> can not jump to tag when using gutentags_plus to add cs-database #33

Open
HardToGiveaName opened this issue Mar 26, 2020 · 1 comment

Comments

@HardToGiveaName
Copy link

Environment: Ubuntu 18.04 docker running on win10
Neovim: v0.4.3

Problem
I used to search places calling this function with gutentags, to jump to tag with tag file generated by gutentags.
When I Install gutentags_plus, I change my .vimrc
from

" gutentags-cscope maps                                                                                                                      
nnoremap <leader>gr :cs f c <C-R>=expand("<cword>")<CR><CR>                                         
nnoremap <leader>gd :cs f g <C-R>=expand("<cword>")<CR><CR>                   
nnoremap <leader>gf :cs f f <C-R>=expand("<cword>")<CR>.h<CR>       
nnoremap <leader>gs :cs f s <C-R>=expand("<cword>")<CR><CR>         

to

noremap <silent> <leader>gs :GscopeFind s <C-R><C-W><cr>                              
noremap <silent> <leader>gr :GscopeFind c <C-R><C-W><cr>                                                   
noremap <silent> <leader>gd :GscopeFind g <C-R><C-W><cr>                                                    
noremap <silent> <leader>ge :GscopeFind e <C-R><C-W><cr>                               

Without gutentags_plus, jump to tags works well.
When load gutentags_plus with out using search function, still works well.
Once using the map above, the jump to tags does not work.

I debug for a while, finding that:
after loading gutentags_plus, jump to tags is ok;
manually call :cs add tagfile, jump to tags does not work.
I think something is wrong when using gutentag_plus adding tag-file database.

Look forward to your reply!
BR.

@dfzrfu
Copy link

dfzrfu commented May 12, 2021

@HardToGiveaName I have the same issue when using gutentags_plus, it is really annoyed. How do you fix this issue? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants