iterm colors not showing
rishabhdeepsingh opened this issue · comments
RishabhDeep Singh commented
Kai Cataldo commented
Are you using true colors?
Kai Cataldo commented
For what it's worth, I use iTerm2 and am not able to replicate this. If you are using true colors, can you share what version of Vim or Neovim you're using?
RishabhDeep Singh commented
Yes, I am using true colors. its in the .vimrc
file as shown in the picture.
VIM - Vi IMproved 8.1 (2018 May 18, compiled Oct 9 2019 04:09:55)
macOS version
Included patches: 1-2102
Compiled by Homebrew
Kai Cataldo commented
Your configuration for the theme looks correct to me, so it seems likely that it's something else in your configuration/setup.
RishabhDeep Singh commented
RishabhDeep Singh commented
I got it fixed by setting set -g default-terminal "tmux-256color"
in my .tmux.config
and this
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
in .vimrc
Kai Cataldo commented
Ah okay, so it was a tmux issue. Makes sense! Glad you figured it out.
Denver Smith commented
@rishabhdeepsingh to get italics to work, you need to set
let &t_ZH="\<Esc>[3m"
let &t_ZR="\<Esc>[23m"
in your vimrc.