fenetikm / falcon

A colour scheme for terminals, Vim and friends.
MIT License
719 stars 26 forks source link

Background changes when I source my vimrc #17

Closed hovsater closed 5 years ago

hovsater commented 6 years ago

See screenshot below. The background starts out black and after sourcing my vimrc file again it turns blueish.

2018-09-06 10 25 37

Running neovim, version NVIM v0.3.1. My vimrc file can be found here: https://gist.github.com/KevinSjoberg/e555d585dc5de1ce79a7e061558f8724

EDIT: If I change my iTerm2 theme to falcon this issue disappear. Why is that?

fenetikm commented 6 years ago

If you take a look at: https://github.com/fenetikm/falcon/wiki/Installation#background-colour-and-inactiveactive-support

You will note that there are some options around the background colour and support for inactive/active. Basically, falcon can either set the background specifically or leave it unset in which case it will take the background from the terminal background.

The handling of this is done from plugin/falcon.vim and on VimEnter autocommand so I guess NeoVim does something a bit funny around resetting the active settings on sourcing the .vimrc ?

fenetikm commented 6 years ago

Did you set any of the global settings in your .vimrc as per the wiki page?

hovsater commented 6 years ago

@fenetikm I did not. The only setting enabled is let g:falcon_lightline = 1. As I mentioned in my original post, the issue disappear if I use the iTerm2 theme. If I change from the iTerm2 theme, the issue reveals itself again.

fenetikm commented 6 years ago

Ok, thanks, I think I can reproduce it - will let you know when I have a working solution. Cheers.

fenetikm commented 6 years ago

Ok, I have added in an additional autocommand and pushed that to the develop branch - could you please try that branch out?

hovsater commented 6 years ago

Looks like that fixed it for me. Thank you! 👍

fenetikm commented 5 years ago

Great - master also has that change now 👍

jalberto commented 5 years ago

I have a similar problem (before and after this fix) In gnome terminal my bg is always transparent (played with different combinations of background settings) but I am not able to set the background properly.

In tmux it works as expected, but because tmux is the one setting the background.

fenetikm commented 5 years ago

yeah, that's going into unsupported territory really (transparent backgrounds) - I would imagine that would be interplay between the terminal compositing on top of the transparent background and the type of blending it is doing... not sure I can do a lot about that.

jalberto commented 5 years ago

probably I didn't explained it correctly :)

yes, my terminal has transparent background, but I want solid one in nvim, but any combinatinos of settings always get me a transparent background

fenetikm commented 5 years ago

right - so the default settings in falcon should make it paint the background... my suggestion would be to first work out how to make gnome stop being transparent which is outside the area of my knowledge unfortunately. stuff like this, although old, is where I would be looking: https://askubuntu.com/questions/644761/how-to-make-the-gnome-terminal-transparent

jalberto commented 5 years ago

@fenetikm that part is easy, so I disabled transparency in the terminal and get a flat back as bg. When I run nvim I can see for a second the darkblue bg, then it turn black. Seems not related to the temrinal it self, but to nvim failin gto keep the bg defined by falcon and fallbacks to terminal default.