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

Airline colors lost when changing focus to and from a :terminal buffer #1894

Closed
ripxorip opened this issue Apr 6, 2019 · 10 comments
Closed

Comments

@ripxorip
Copy link

ripxorip commented Apr 6, 2019

Hi, thank your for the awesome work. I am having some trouble with the plugin and the terminal emulator of neovim.

environment

  • vim: nvim 0.3.4
  • OS: Mac/Linux
  • Have you reproduced with a minimal vimrc: Yes
  • What is your airline configuration: Stock
  • does it happen in Vim: ???

actual behavior

The airline turns black when changing focus back to the :terminal buffer

expected behavior

Airline colors shall be kept

@chrisbra
Copy link
Member

chrisbra commented Apr 8, 2019

can you please show a screencapture of what is happening?

@ripxorip
Copy link
Author

ripxorip commented Apr 9, 2019

airline_issue

@chrisbra
Copy link
Member

chrisbra commented Apr 9, 2019

If I understand correctly, this is the default inactive window highlighting.

@ripxorip
Copy link
Author

ripxorip commented Apr 9, 2019

Well the default is grey, when I get back to the window making it active, it actually turns black. It should be bright as it is the first time it is active.

@chrisbra
Copy link
Member

chrisbra commented Apr 9, 2019

Ah, I couldn't follow the screencast. I think what is happening (in both vim and neovim) is, that the first time you switch to the terminal, the terminal isn't fully setup yet, so airline does not update to the desired state. Only after re-entering the terminal you see the expected colors.

@ripxorip
Copy link
Author

As I am using the solarized light color scheme the expected colors shall be what they are at first: light. The theme is lost upon refocus of the windows when making it active the second time.

@chrisbra
Copy link
Member

chrisbra commented Apr 10, 2019 via email

@ripxorip
Copy link
Author

Alright, I will see if I can confirm in the vim scripts for the airline theme then I guess

@stevanmilic
Copy link

If anyone is looking for a solution, you can use this: vim-airline/vim-airline-themes#180 (comment)

@chrisbra
Copy link
Member

as said before, I am not opposed to adding new sections to the existing themes. Someone just has to make them

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

3 participants