GNU GLOBAL (gtags) is not available for Go source files

Asked 2 years ago, Updated 2 years ago, 382 views

I ran gtags in the directory where the source code for Go resides and generated a tag file.

After creating the tag file, I tried to jump the tag using gtags.vim (vim plug-in included with GNU GLOBAL) in vim, but it became Not Found and I couldn't jump well.
Why?

The generation of the tag file seems to have been successful without any errors.

I also tried the global-xr command, but nothing was displayed.

By the way, gtags do not support Go by default, so we use pygments to analyze them.

Environment:
Arch Linux GNU GLOBAL 6.6.5

go vim

2022-09-30 21:54

1 Answers

Self-resolved

I forgot to install ctags and
After installing ctags, it works well


2022-09-30 21:54

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.