lyuts / vim-rtags

Vim bindings for rtags, llvm/clang based c++ code indexer.
BSD 2-Clause "Simplified" License
282 stars 56 forks source link

Is there a way to run rc for the whole project as a neovim job? #27

Closed sztomi closed 8 years ago

sztomi commented 8 years ago

I would like my project to be reindexed periodically in the background. Is this possible? It it something that vim-rtags already does?

lyuts commented 8 years ago

rtags does that for you by reindexing files that have changed. You also have an option to run rc -V which will trigger reindexing of entire project. vim-rtags currently has a mapping to only reindex a given file (rc -V /path/to/some/file), though we can add a mapping for rc -V. However, it seems to me that there should be no reason to invoke reindexing from vim-rtags as rtags detection of files being changed and reindexing them on the fly should be sufficient not needing to do periodic reindexing.

sztomi commented 8 years ago

What if I add new file to the project (i.e. new entry in the compilation database)?

lyuts commented 8 years ago

That shouldn't be a problem. Of course, once you add a new file rtags doesn't know anything about it. But as soon as you try compiling your code with this file rtags will start tracking it as a part of the project.

sztomi commented 8 years ago

Great, thank you!