Skip to content

Question: can tagbar use same ctags file as gutentags? #872

Description

@lijh8

Hi, currently, both tagbar and gutentags work on my computer.
gutentags will generate tags file in the same directory with .git,
will tagbar use this tags file too?

Thanks


$ tree -a

.
└── src
    ├── .git
    ├── main
    │   ├── Makefile
    │   ├── foo.cpp
    │   ├── foo.h
    │   └── main.cpp
    └── tags

$
$ ls src/.git
$ ls src/tags
src/tags
$

$ cat ~/.vimrc

"" Tagbar
" https://github.com/preservim/tagbar/issues/851
autocmd QuitPre * qall
autocmd VimEnter * Tagbar
let g:tagbar_sort = 0
nnoremap <F8> :TagbarToggle<CR>

"" gutentags: ctags: Ctrl-], Ctrl-t
" $ mkdir ~/project_root_dir/.git
let g:gutentags_add_default_project_roots = 1

$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions