We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
:colorscheme astrotheme
1 parent 075c20c commit 200c833Copy full SHA for 200c833
lua/astrotheme/init.lua
@@ -5,9 +5,11 @@ local M = { config = {} }
5
6
function M.load(theme)
7
if
8
- theme
9
- and theme == M.config.palette
10
- and vim.o.background ~= (M.config.palette == M.config.background["light"] and "light" or "dark")
+ not theme
+ or (
+ theme == M.config.palette
11
+ and vim.o.background ~= (M.config.palette == M.config.background["light"] and "light" or "dark")
12
+ )
13
then
14
theme = M.config.background[vim.o.background]
15
end
0 commit comments