chromatica.nvim
chromatica.nvim copied to clipboard
Different coloring in a header vs cpp file
I noticed slightly different coloring in a header vs a cpp file, see screenshot:
Don't know if this is expected, seems wrong to me. The relevant settings in my vimrc are:
let g:chromatica#enable_at_startup=1
let g:chromatica#highlight_feature_level=1
I think the cause might be you have different ft
and syn
. The one on the left seems treating the source code as C not C++.
I checked the values of ft
and syn
for them and they are cpp for both. Tried disabling all other vim plugins as well but get the same behaviour.
Same problem here.
This is because libclang don't know how to compile header files, and they are not included in compile_commands.json. This is common problem to all plugins using lbclang
For anyone run into this problem, are you using a compile_commands.json
or a .clang
file for your compile args?