preservim / tagbar

Vim plugin that displays tags in a window, ordered by scope
https://preservim.github.io/tagbar
Other
6.11k stars 486 forks source link

Add tag datatype #698

Closed raven42 closed 3 years ago

raven42 commented 3 years ago

Closes #680

Add g:tagbar_show_data_type field to show the tag datatype next to the tag in the tagbar window This uses the --fields=t field to get the datatype from ctags. If not found, then it will attempt to derive the datatype by extracting all the output from the pattern preceeding the tag name.

raven42 commented 3 years ago

Ready to merge this in. As this is a new option that has to be explicitly enabled, I think we can do more testing with other languages and such after initial commit. In my testing with c / c++ files it seems to be stable.