Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Effects of 'solarized_termtrans=1' #125

Open
shawnyeager opened this issue May 1, 2017 · 4 comments
Open

Effects of 'solarized_termtrans=1' #125

shawnyeager opened this issue May 1, 2017 · 4 comments

Comments

@shawnyeager
Copy link

shawnyeager commented May 1, 2017

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

@nathanaelkane
Copy link
Collaborator

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

@shawnyeager
Copy link
Author

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

@nathanaelkane
Copy link
Collaborator

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.

@shawnyeager
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants