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

[Question] How can I change airline background to transparent? #166

Closed
karambaq opened this issue May 14, 2019 · 7 comments
Closed

[Question] How can I change airline background to transparent? #166

karambaq opened this issue May 14, 2019 · 7 comments

Comments

@karambaq
Copy link

Can I set background color between sections to transparent?

Снимок экрана 2019-05-14 в 21 20 38

@joshdick
Copy link
Owner

joshdick commented May 14, 2019

Can you post your .vimrc?

Are you using the latest version(s) of both onedark.vim and the airline theme (especially relevant if you happened to install them manually and separately, instead of via a plugin manager?)

This could also happen if you are running the theme in 256-color mode and have opted to not set a background color as documented here. Since it looks like you're using Hyper and Hyper doesn't yet have proper truecolor support (though it's very close!), if this is the issue, you should either remove the background override, or use 16-color mode instead.

@karambaq
Copy link
Author

@joshdick
It's alacritty, sorry I think screenshot is a little bit confusing.
Terminal is little transparent.

Снимок экрана 2019-05-14 в 23 09 18

@joshdick
Copy link
Owner

joshdick commented May 14, 2019

Good to know. Answers to my other questions will help debug your issue. 🙂

Since you're using Alacritty, switching to truecolor mode as documented in the README may also fix the issue.

@karambaq
Copy link
Author

vim config

Latest versions both
Enabled truecolor but didn't help :(

@karambaq
Copy link
Author

I've tried to enable tabline transparency with this command:
:hi airline_tabfill ctermbg=NONE guibg=NONE
and it works, but disables after vim restart, what I need to add in the autoload/themes/onedark.vim to enable this forever?

@joshdick
Copy link
Owner

What version of Vim are you trying this with? The truecolor config in your .vimrc does look correct, but I wonder if set t_Co=256 is interfering; you could try removing that setting.

In any case, glad you found a workaround that's partially working; to answer your most recent question ("enabling it forever"), adding this to your .vimrc might work (I didn't test it):

if (has("autocmd"))
  augroup airlinecolors
    autocmd!
    autocmd ColorScheme * highlight airline_tabfill ctermbg=NONE guibg=NONE
  augroup END
endif

@joshdick
Copy link
Owner

Closing this due to inactivity but feel free to keep the conversation going!

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