c0r73x / neotags.nvim

Tag highlight in neovim
MIT License
122 stars 9 forks source link

Allow adding extra directories to "projects" #43

Closed haasn closed 4 years ago

haasn commented 4 years ago

If my project heavily relies on identifiers exported by third parties libraries, I would like to be able to add their include directories to my tag list.

On the command line, I can do this with e.g. ctags . /usr/include/foo/. It seems like neotags has no concept of doing this (except perhaps by overriding the ctags arguments itself via a local vimrc or something).

It would be hugely useful if you could allow adding third party directories like this.

Note that I discussed this before in #12, but the recommended solution in that thread (to disable neotags tag generation in favor of other scripts like autotags) no longer works because neotags no longer consults the tags file, instead storing its tags in ~/.vim_tags. So proper support for this in neotags is needed.

haasn commented 4 years ago

I tried implementing this myself but I quickly ran into the annoying arbitrariness of the neotags.txt file format and its hacky custom parsing logic.

It seems like it would be a good idea to rip it out and replace it by just serializing the projects object as neotags.json or something. Would you be terribly opposed to this?