You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really like how tokyonight can auto-select the day theme when the terminal background color is "light" and night when the terminal bg is dark. I have successfully configured the colors for tokyonight in general, but I can't seem to independently configure night one way, and day the other.
Is there a way to do something akin to this (pseudocode'ish):
-- theme.luareturn {
{
"folke/tokyonight.nvim",
opts= { -- or should this be `config`?on_colors=function(colors)
iftheme.name=="day" thencolors.bg="#FFFFFF"elseiftheme.name=="night" thencolors.bg="#16161E"endend,
},
},
}
Or, if I could use the same detection that tokyonight does with detecting the terminal bg color and set the appropriate colors (pseudocode'ish):
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello all,
I really like how
tokyonight
can auto-select theday
theme when the terminal background color is "light" andnight
when the terminal bg is dark. I have successfully configured the colors fortokyonight
in general, but I can't seem to independently configurenight
one way, andday
the other.Is there a way to do something akin to this (pseudocode'ish):
Or, if I could use the same detection that
tokyonight
does with detecting the terminal bg color and set the appropriate colors (pseudocode'ish):I'm using a fairly standard installation of LazyVim if that makes a difference.
Thanks in advance for any help you can provide and thanks for providing such a wonderful theme <3
Beta Was this translation helpful? Give feedback.
All reactions