tagbar icon indicating copy to clipboard operation
tagbar copied to clipboard

universal-ctags settings for rust constant variable

Open 4LPH4-Z3R0 opened this issue 2 years ago • 1 comments

In the wiki page: Support for additional filetypes

There are settings for universal-ctags to work on rust project:

image

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).

image

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?

4LPH4-Z3R0 avatar May 11 '22 08:05 4LPH4-Z3R0

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.

alerque avatar May 11 '22 10:05 alerque