Skip to content

Commit 200c833

Browse files
committed
fix: fix when calling :colorscheme astrotheme
1 parent 075c20c commit 200c833

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lua/astrotheme/init.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ local M = { config = {} }
55

66
function M.load(theme)
77
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")
8+
not theme
9+
or (
10+
theme == M.config.palette
11+
and vim.o.background ~= (M.config.palette == M.config.background["light"] and "light" or "dark")
12+
)
1113
then
1214
theme = M.config.background[vim.o.background]
1315
end

0 commit comments

Comments
 (0)