fix: preserve explicit theme when background option changes

Fixes #48
This commit is contained in:
Webhooked
2026-01-31 15:39:34 +01:00
parent 26f5c9686b
commit 5e024e8294
+2 -1
View File
@@ -103,7 +103,8 @@ function M.load(theme)
-- Clear cached modules to force reload -- Clear cached modules to force reload
package.loaded["kanso.colors"] = nil package.loaded["kanso.colors"] = nil
package.loaded["kanso.themes"] = nil package.loaded["kanso.themes"] = nil
M.load() -- Pass explicit theme to preserve it; if nil, respects vim.o.background
M.load(M._EXPLICIT_THEME)
end end
end, end,
}) })