Effects of 'solarized_termtrans=1'
Opened this issue · 4 comments
In order to get iTerm2 + tmux + neovim w/ solarized to render "correctly", I'm setting g:solarized_termtrans = 1
. This is having the effect causing any color choices in vim-indent-guides to render the same, regardless of color selected.
Below is how it renders for me with default settings, but I've experimented with guibg
and ctermbg
. Perhaps this is expected behavior, but I haven't found a fix.
The auto-color selecting feature is very basic when using terminal colors. It's probably best to define your own indent guide colors:
let g:indent_guides_auto_colors = 0
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=red ctermbg=3
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=green ctermbg=4
Thanks, @nathanaelkane. However, that was my point. In my experience, with solarized_termtrans = 1
, color selection doesn't work as expected. Here's a screen grab with the exact, sample setting you suggested.
That's expected if you're using a custom iTerm theme, which I believe you are. If you are, then you only have 16 colors to choose from and the custom iTerm theme has overridden those 16 colors.
NeoVim supports truecolor, so maybe try to find an alternative version of your colorscheme that sets the gui
highlight groups.
Thanks again. I'm using iTerm2's built-in Solarized Dark theme. With NeoVim, I'm using solarized8, which seems to imply the above requirements are fulfilled.