local M = {} local is_prepared local function set_prepared(val) is_prepared = val end local function get_prepared() return is_prepared end function M.get() if not get_prepared() then set_prepared(vim.api.nvim_create_autocmd("User", { pattern = "CatppuccinLoaded", callback = function() if pcall(require, "leap") then require("leap").init_highlight(true) end end, })) end return { LeapLabelPrimary = { bg = cp.surface1, fg = cp.text }, LeapLabelSecondary = { bg = cp.surface1, fg = cp.text }, LeapBackdrop = { bg = cp.base, fg = cp.overlay0 }, LeapMatch = { bg = cp.base, fg = cp.red, style = { "underline" } }, } end return M