We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bca6544 commit 68d7298Copy full SHA for 68d7298
lua/cyberdream/cache.lua
@@ -56,20 +56,20 @@ end
56
M.load = function()
57
local cache = io.open(cache_file, "r")
58
if not cache then
59
+ M.build(require("cyberdream.theme").setup())
60
local notify = vim.defer_fn(function()
- util.notify("Cache file not found, run :CyberdreamBuildCache to generate", "warn")
61
+ util.notify(" Building cache...\n A restart may be required for changes to take effect.")
62
+ M.load()
63
end, 1000)
64
return notify
65
end
66
67
local theme = vim.json.decode(cache:read("*a"))
-
68
for group, opts in pairs(theme.highlights) do
69
vim.api.nvim_set_hl(0, group, opts)
70
71
72
M.load_options(theme)
73
vim.g.colors_name = "cyberdream"
74
75
0 commit comments