We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1889cc commit 1801de8Copy full SHA for 1801de8
lua/cyberdream/init.lua
@@ -21,7 +21,7 @@ end, {})
21
vim.api.nvim_create_autocmd("OptionSet", {
22
pattern = "background",
23
callback = function()
24
- if vim.g.cyberdream_opts.theme.variant ~= "auto" then
+ if vim.g.cyberdream_opts.theme.variant ~= "auto" or vim.fn.execute("colorscheme"):find("cyberdream") == nil then
25
return
26
end
27
local new_variant = vim.v.option_new == "dark" and "default" or "light"
0 commit comments