Open antonysouthworth-halter opened 3 years ago
Thanks for the contribution. Adding things to the Wiki should be as easy as hitting "edit" on the page you think it could go on, but I have another suggestion. Why don't you just add the code to the plugin core so it is supported out of the box for everybody without needing to copy a config from the Wiki at all?
I think the file you'd want to edit is this one.
On further reading I see I missed the bit where this requires modifications to the Ctags config. In that case you are right this will need to go into the Wiki for now. We usually don't add tag maps to the plugin until at least one tag provider program supports them out of the box. Perhaps you could contribute the relevant part upstream to Universal Ctags?
@alerque thanks for reply 😄. Have added to wiki: https://github.com/preservim/tagbar/wiki#terraform-hcl
And PR open on universal ctags: https://github.com/universal-ctags/ctags/pull/2952
Putting this here for others to find; I don't know how to contribute to the project wiki.
Assuming you are using Universal Ctags, (and for reference I'm on macOS Catalina).
~/.ctags.d/terraform.ctags
Basically this explains to ctags how to parse
.tf
files.~/.vimrc
AFAIU this basically explains to
tagbar
how to read the tags generated by ctags.Example usage: