From 3e6eb54d58745c58a37b7cc1e0e835dccd3eac4c Mon Sep 17 00:00:00 2001 From: Zhong Liu Date: Mon, 13 Jun 2022 22:04:25 +0800 Subject: [PATCH] fix: recursive execute after_loading callback --- lua/catppuccin/core/integrations/lightspeed.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/catppuccin/core/integrations/lightspeed.lua b/lua/catppuccin/core/integrations/lightspeed.lua index 757482c..5baf2ed 100644 --- a/lua/catppuccin/core/integrations/lightspeed.lua +++ b/lua/catppuccin/core/integrations/lightspeed.lua @@ -15,8 +15,9 @@ function M.get(cp) if not get_prepared() then local catppuccin = require("catppuccin") if catppuccin.after_loading ~= nil then + local callback = catppuccin.after_loading catppuccin.after_loading = function () - catppuccin.after_loading() + callback() require'lightspeed'.init_highlight() end else