is it possible to create plugin which overrides colorschemes background colors ? #3742
Replies: 2 comments 2 replies
-
Afaik to make a color scheme background transparent you can edit the config file and delete the default background color. Example: What approach you took when trying to write the plugin? |
Beta Was this translation helpful? Give feedback.
-
Transparent background does not exist as far as I know, but you can make the colorscheme use the one in your terminal as the background. So, if your terminal has transparency and you don't set a background in any Check the simple colorscheme; you will see that it does not use a background in most of them. This solution that I am going to suggest may or may not work for the colorschemes you use; it all depends on the use of 'background' in those colorschemes. The solution is based on the 'include' directive and overriding 'default' (or more). You need to create a new colorscheme file that includes your main colorscheme and the line to change the background color. Include your colorscheme at the top and then this line after
You can override more NOTE: This forces you to change the colorscheme in this file, so Maybe this approach is useful to you or other users. If the above does not work and you have to modify the colorschemes manually, check this response. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I previously attempted to write a plugin that would force transparency background on all colorschemes ( I like switching colorschemes regularly ), however I wasnt able to get anythign working. is there anyway I could achieve this with native behaviour or would I need to fork the project & make a pr to add this behaviour?
Beta Was this translation helpful? Give feedback.
All reactions