fix: recursive execute after_loading callback

dev
Zhong Liu 2 years ago
parent 773d339cbd
commit 3e6eb54d58

@ -15,8 +15,9 @@ function M.get(cp)
if not get_prepared() then if not get_prepared() then
local catppuccin = require("catppuccin") local catppuccin = require("catppuccin")
if catppuccin.after_loading ~= nil then if catppuccin.after_loading ~= nil then
local callback = catppuccin.after_loading
catppuccin.after_loading = function () catppuccin.after_loading = function ()
catppuccin.after_loading() callback()
require'lightspeed'.init_highlight() require'lightspeed'.init_highlight()
end end
else else

Loading…
Cancel
Save