Open baco opened 1 year ago
@baco – I think instead of modifying the table for transparent background, what we could do is highlight the Normal
group background with None
and keep the table as it is. But if the user overrides the color, then it makes sense to modify the table.
Is there any progress on the proposed solution?
@baco – I think instead of modifying the table for transparent background, what we could do is highlight the
Normal
group background withNone
and keep the table as it is. But if the user overrides the color, then it makes sense to modify the table.
Any update on this issue?
After merging PR #144 there is no way to undo the
transparent
setting. The corresponding color is lost.If some flow of the config sets the background to
transparent=true
thebg
property is set toNONE
, setting back totransparent=false
(for instance when using with a GUI, that doesn't uses composite) does nothing, and the color can not be retrieved again.Use case:
In
init.vim
I have:later, in
ginit.vim
:I use this to have transparent bg on the terminal (which is also transparent and blends with the desktop wallpaper); but on GUIs, which loaded
ginit.vim
later on, reset it toc.vscBack
because the background of the GUI's window would be black otherwise.With the current modification,
.get_colors()
gives back the table of colors modified by the settingtransparent=true
in the first config file and there is no other way to reach the original table of colors to re-usevscBack
.