-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
fix(compiler): compile all themes inst of 1 mult times #290
Conversation
I had to make this a draft because there seems to be negative side-effects that were either produced, or simply made visible, by this pr. For example (airline highlights changed): ![]() I need to investigate this further but it might have something to do with the color lib? Not sure. Lmk if you have any ideas. It seems that the order in which the themes are compiled might matter (due to some unforeseen side-effects of compilation).
Explanation of the buggithub-nvim-theme/lua/github-theme/init.lua Lines 101 to 104 in 796ecdd
github-nvim-theme/lua/github-theme/init.lua Lines 27 to 35 in 796ecdd
github-nvim-theme/lua/github-theme/lib/compiler.lua Lines 25 to 105 in 796ecdd
The implications of all of this is that whenever a compilation is triggered and SolutionI'd suggest either fixing this to compile all of the different themes/styles (which appears to be the original intention), or perhaps changing it to compile just 1 theme (the currently-set theme) with others only being compiled impromptu on an as-needed basis. This pr currently attempts to do the former. |
282aea9
to
5916506
Compare
Fix bug where the current theme gets compiled multiple times instead of compiling all themes.
5916506
to
44ab447
Compare
Regarding the sensitivity to compilation order issue, this line appears to be the offending line:
in particular, the value of So it's probably something in |
Fix bug where the current theme gets compiled multiple times instead of compiling all themes.