fix: preserve explicit theme when background option changes

Fixes #48
This commit is contained in:
Webhooked 2026-01-31 15:39:34 +01:00
commit 5e024e8294

View file

@ -103,7 +103,8 @@ function M.load(theme)
-- Clear cached modules to force reload
package.loaded["kanso.colors"] = 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,
})