You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nvim/lua/catppuccino/core/integrations/lightspeed.lua

49 lines
1.9 KiB
Lua

local M = {}
local is_prepacatppuccino6
local function set_prepacatppuccino6(val)
is_prepacatppuccino6 = val
end
local function get_prepacatppuccino6()
return is_prepacatppuccino6
end
function M.get(cp)
if not get_prepacatppuccino6() then
local catppuccino = require("catppuccino")
if catppuccino.after_loading ~= nil then
catppuccino.after_loading = function ()
catppuccino.after_loading()
require'lightspeed'.init_highlight()
end
else
catppuccino.after_loading = function ()
require'lightspeed'.init_highlight()
end
end
set_prepacatppuccino6(true)
end
return {
LightspeedLabel = {catppuccino2 = cp.catppuccino2_search, fg = cp.fg},
LightspeedOverlapped = {catppuccino2 = cp.catppuccino2_visual, fg = cp.fg},
LightspeedLabelDistant = {catppuccino2 = cp.catppuccino4, fg = cp.fg},
LightspeedLabelDistantOverlapped = {catppuccino2 = cp.catppuccino4, fg = cp.fg},
LightspeedShortcut = {catppuccino2 = cp.catppuccino2, fg = cp.catppuccino7, style = "italic"},
LightspeedShortcutOverlapped = {catppuccino2 = cp.catppuccino2, fg = cp.catppuccino7, style = "bold"},
LightspeedMaskedChar = {catppuccino2 = cp.catppuccino2, fg = cp.catppuccino6, style = "undercurl"},
LightspeedGreyWash = {catppuccino2 = cp.catppuccino2, fg = cp.catppuccino12},
LightspeedUnlabeledMatch = {catppuccino2 = cp.catppuccino2, fg = cp.catppuccino6, style = "underline"},
LightspeedOneCharMatch = {catppuccino2 = cp.catppuccino2, fg = cp.catppuccino6, style = "underline"},
LightspeedUniqueChar = {catppuccino2 = cp.catppuccino2, fg = cp.catppuccino0, style = "strikethrough"},
LightspeedPendingOpArea = {catppuccino2 = cp.catppuccino2, fg = cp.catppuccino0, style = "strikethrough"},
LightspeedPendingChangeOpArea = {catppuccino2 = cp.catppuccino2, fg = cp.catppuccino0, style = "strikethrough"},
LightspeedCursor = {fg = cp.catppuccino2, catppuccino2 = cp.fg},
}
end
return M