Closed rgreenblatt closed 2 years ago
Hi greenblatt,
Thanks for reporting this, it was fairly easy to reproduce. I have pushed a fix onto master, could you test it out and see if it fixes your issue?
Thanks.
Yep, looks like this is fixed, thanks!
Reopening as ce92c8e9b1ab587eb22ad017d536619b6a100d09 seems to have caused a regression.
The highlighting flashes on saving which is worse than having leftover highlights so I am going to revert this fix for now and come up with a better one.
The cause seems to be that ccls is sending an empty notification immediately after saving and then sending the real highlighting after finishing analyzing (usually 500ms to a few seconds depending on file size).
If you remove the
ifdef
, then the<< "hello world\n"
isn't highlighted properly (it remains grey).It seems that the corresponding highlight group isn't being removed (or similar).
I am using ccls (official arch package) with clang 11.1, neovim, and coc.nvim.
If this can't be reproduced easily let me know and I will add log files and create a minimal configuration which reproduces this.