Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nvim in macOS Terminal breaks on displaying termguicolors

I have been using Neovim in iTerm2 so far and it displays my Vim syntax just fine. I started to use the good ol' Mac OS Terminal and it cannot display my Vim syntax colors after using set termguicolors.

On the left side I have iTerm and on the right side is the OSX Terminal with the standard nvim highlighting. enter image description here

After turning on termguicolors it looks like this: (iTerm works as expected and OSX Terminal presents a gray mess) enter image description here

I would like to understand why this happens.

like image 974
tbrodbeck Avatar asked Sep 07 '25 10:09

tbrodbeck


1 Answers

Terminal.app only supports 256 colors, which is not the 24-bit color that truecolors uses.

like image 171
D. Ben Knoble Avatar answered Sep 11 '25 14:09

D. Ben Knoble