set termguicolors messes up Apple Terminal's colors

Amin Farjadi
2023-08-11 17:21:45 +01:00
parent d83926a44e
commit c9d045a915

@@ -23,7 +23,7 @@ Neovim and recent Vim support true color terminal out of the box with just a sin
"Use 24-bit (true-color) mode in Vim/Neovim when outside tmux.
"If you're using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux's 24-bit color support
"(see < http://sunaku.github.io/tmux-24bit-color.html#usage > for more information.)
if (empty($TMUX))
if (empty($TMUX) && getenv('TERM_PROGRAM') != 'Apple_Terminal')
if (has("nvim"))
"For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 >
let $NVIM_TUI_ENABLE_TRUE_COLOR=1