tagbar
tagbar copied to clipboard
universal-ctags settings for rust constant variable
In the wiki page: Support for additional filetypes
There are settings for universal-ctags to work on rust project:
However, these settings seem not working for rust constant variables on debian 11 and macos Montery with neovim (v0.7.0).
So I checked the original commit in the universal-ctags project : rust: Add support for constant parsing #3253 and [techee:rust2](https://github.com/techee/ctags/commit/648cbe273d9454a0556e871c5406db83f8968aa3).
The code shows that the key for constants should be 'C' instead of 'v'.
After I changed the settings above ('C:constants:1:0' and 'C': 'variable'), things seem to work correctly.
Should this wiki page be updated?
Yes, it should. Feel free…
Also since uctags supports it now Rust support should be added to core of this plugin so no user config is necessary. I would facilitate a PR that makes that happen.