I have AnsiEsc installed and working, which I can verify because if I run :AnsiEsc then
"Legend: today, weekend, ..."
becomes
"Legend: ^[[38;5;15m^[[...",
but does not seem to compile code.
The complete list of my plugins can be found here.
I though that the transparency plugin might have been causing it (nvim-transparent) but after removing it nothing changed.