mirror of https://github.com/sgoudham/nvim.git
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.
45 lines
1.4 KiB
Lua
45 lines
1.4 KiB
Lua
3 years ago
|
local M = {}
|
||
|
|
||
3 years ago
|
local is_prepared
|
||
3 years ago
|
|
||
3 years ago
|
local function set_prepared(val)
|
||
|
is_prepared = val
|
||
3 years ago
|
end
|
||
|
|
||
3 years ago
|
local function get_prepared()
|
||
|
return is_prepared
|
||
3 years ago
|
end
|
||
|
|
||
2 years ago
|
function M.get()
|
||
3 years ago
|
|
||
3 years ago
|
if not get_prepared() then
|
||
2 years ago
|
set_prepared(vim.api.nvim_create_autocmd("User", {
|
||
|
pattern = "CatppuccinLoaded",
|
||
|
callback = function ()
|
||
|
if pcall(require, "lightspeed") then
|
||
|
require("lightspeed").init_highlight()
|
||
|
end
|
||
3 years ago
|
end
|
||
2 years ago
|
}))
|
||
3 years ago
|
end
|
||
|
|
||
|
return {
|
||
3 years ago
|
LightspeedLabel = {bg = cp.surface1, fg = cp.text},
|
||
|
LightspeedOverlapped = {bg = cp.surface1, fg = cp.text},
|
||
|
LightspeedLabelDistant = {bg = cp.mauve, fg = cp.text},
|
||
|
LightspeedLabelDistantOverlapped = {bg = cp.mauve, fg = cp.text},
|
||
2 years ago
|
LightspeedShortcut = {bg = cp.base, fg = cp.peach, style = { "italic" }},
|
||
|
LightspeedShortcutOverlapped = {bg = cp.base, fg = cp.peach, style = { "bold" }},
|
||
|
LightspeedMaskedChar = {bg = cp.base, fg = cp.red, style = { "undercurl" }},
|
||
3 years ago
|
LightspeedGreyWash = {bg = cp.base, fg = cp.overlay0},
|
||
2 years ago
|
LightspeedUnlabeledMatch = {bg = cp.base, fg = cp.red, style = { "underline" }},
|
||
|
LightspeedOneCharMatch = {bg = cp.base, fg = cp.red, style = { "underline" }},
|
||
|
LightspeedUniqueChar = {bg = cp.base, fg = cp.green, style = { "strikethrough" }},
|
||
|
LightspeedPendingOpArea = {bg = cp.base, fg = cp.green, style = { "strikethrough" }},
|
||
|
LightspeedPendingChangeOpArea = {bg = cp.base, fg = cp.green, style = { "strikethrough" }},
|
||
3 years ago
|
LightspeedCursor = {fg = cp.base, bg = cp.text},
|
||
3 years ago
|
}
|
||
|
end
|
||
|
|
||
|
return M
|