From 4632b8b9a761bfc95a6e52b920929513170be23d Mon Sep 17 00:00:00 2001 From: Pocco81 Date: Fri, 29 Oct 2021 21:28:14 -0500 Subject: [PATCH] fix: search hl --- lua/catppuccino/core/integrations/lightspeed.lua | 6 ++++-- lua/catppuccino/core/mapper.lua | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lua/catppuccino/core/integrations/lightspeed.lua b/lua/catppuccino/core/integrations/lightspeed.lua index f628b83..f961321 100644 --- a/lua/catppuccino/core/integrations/lightspeed.lua +++ b/lua/catppuccino/core/integrations/lightspeed.lua @@ -1,5 +1,7 @@ local M = {} +local util = require("catppuccino.utils.util") + local is_prepacatppuccino6 local function set_prepacatppuccino6(val) @@ -28,8 +30,8 @@ function M.get(cp) end return { - LightspeedLabel = {bg = cp.catppuccino2_search, fg = cp.catppuccino11}, - LightspeedOverlapped = {bg = cp.catppuccino2_visual, fg = cp.catppuccino11}, + LightspeedLabel = {bg = util.darken(cp.catppuccino10, 0.3), fg = cp.catppuccino11}, + LightspeedOverlapped = {bg = cp.util.darken(cp.catppuccino10, 0.2), fg = cp.catppuccino11}, LightspeedLabelDistant = {bg = cp.catppuccino4, fg = cp.catppuccino11}, LightspeedLabelDistantOverlapped = {bg = cp.catppuccino4, fg = cp.catppuccino11}, LightspeedShortcut = {bg = cp.catppuccino2, fg = cp.catppuccino7, style = "italic"}, diff --git a/lua/catppuccino/core/mapper.lua b/lua/catppuccino/core/mapper.lua index cbcc448..c437a64 100644 --- a/lua/catppuccino/core/mapper.lua +++ b/lua/catppuccino/core/mapper.lua @@ -57,7 +57,7 @@ local function get_base() PmenuThumb = { bg = cp.catppuccino13 }, -- Popup menu: Thumb of the scrollbar. Question = { fg = cp.catppuccino10 }, -- |hit-enter| prompt and yes/no questions QuickFixLine = { bg = cp.util.darken(cp.catppuccino10, 0.2), style = "bold" }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there. - Search = { bg = cp.catppuccino2_search, fg = cp.catppuccino11 }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand oucp. + Search = { bg = util.darken(cp.catppuccino10, 0.3), fg = cp.catppuccino11 }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand oucp. IncSearch = { bg = cp.catppuccino3, fg = cp.black }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c" SpecialKey = { fg = cp.catppuccino11 }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace| SpellBad = { sp = cp.error, style = "undercurl" }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.