vim-indent-guides icon indicating copy to clipboard operation
vim-indent-guides copied to clipboard

Effects of 'solarized_termtrans=1'

Open shawnyeager opened this issue 8 years ago • 4 comments
trafficstars

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.

screenshot 2017-05-01 10 51 31

shawnyeager avatar May 01 '17 15:05 shawnyeager

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

nathanaelkane avatar May 01 '17 21:05 nathanaelkane

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.

screenshot 2017-05-01 18 42 51

shawnyeager avatar May 01 '17 23:05 shawnyeager

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.

nathanaelkane avatar May 01 '17 23:05 nathanaelkane

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.

shawnyeager avatar May 02 '17 00:05 shawnyeager