c0r73x / neotags.nvim

Tag highlight in neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow adding extra directories to "projects"

haasn opened this issue · comments

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.

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?