arakashic / chromatica.nvim

Clang based syntax highlighting for Neovim
MIT License
299 stars 17 forks source link

Improve .clang files #3

Closed arakashic closed 7 years ago

arakashic commented 8 years ago
  1. Allowing multiple flags options
HiPhish commented 8 years ago

The deoplete-clang plugin allows specifying the location of the compile_commands.json file like this:

compilation_database = "<path to compilation_database>"

It's an alternative to specifying the flags in the file. This is useful if the compilation database is not in the root of the project. Neovim itself places the database in the build directory, so this allows me to just put the patch in my .clang file and have it always be up to date. Can Chromatica do the same?

arakashic commented 8 years ago

Yes. Chromatica already has the support for deoplete-clang-like configuration. I am thinking to extend it. Specifically, I am thinking to allow multiple flags because I don't like the state that tens of flags are all written in one line.

HiPhish commented 8 years ago

OK, thanks. I wasn't sure because it didn't mention that option in the documentation. Yes, I agree that putting all flags on the same like is awful.

arakashic commented 8 years ago

Ah. I forgot to push it is the doc. CDB support was broken, so I didn't mention it. :)