Merge pull request #154 from laxtiz/main

fix:#153 after_loading callback recursive execute
dev
Pocco81 2 years ago committed by GitHub
commit e3eba33383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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