From 4bbd96aa03881b11889f0b80e1d4b71b1fd14b7a Mon Sep 17 00:00:00 2001 From: arpangreat Date: Thu, 2 Jun 2022 02:42:13 +0530 Subject: [PATCH] Adding Highlighting for WinBar --- lua/catppuccin/core/mapper.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lua/catppuccin/core/mapper.lua b/lua/catppuccin/core/mapper.lua index 10d2571..579ecd0 100644 --- a/lua/catppuccin/core/mapper.lua +++ b/lua/catppuccin/core/mapper.lua @@ -28,7 +28,12 @@ local function get_base() lCursor = { fg = cp.base, bg = cp.text }, -- the character under the cursor when |language-mapping| is used (see 'guicursor') CursorIM = { fg = cp.base, bg = cp.text }, -- like Cursor, but used when in IME mode |CursorIM| CursorColumn = { bg = cp.mantle }, -- Screen-column at the cursor, when 'cursorcolumn' is secp. - CursorLine = { bg = colors_util.vary_color({latte = util.lighten(cp.mantle, 0.70, cp.base)}, util.darken(cp.surface0, 0.64, cp.base)) }, -- Screen-line at the cursor, when 'cursorline' is secp. Low-priority if forecrust (ctermfg OR guifg) is not secp. + CursorLine = { + bg = colors_util.vary_color( + { latte = util.lighten(cp.mantle, 0.70, cp.base) }, + util.darken(cp.surface0, 0.64, cp.base) + ), + }, -- Screen-line at the cursor, when 'cursorline' is secp. Low-priority if forecrust (ctermfg OR guifg) is not secp. Directory = { fg = cp.blue }, -- directory names (and other special names in listings) EndOfBuffer = { fg = cp.base }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|. ErrorMsg = { fg = cp.red, style = "bold,italic" }, -- error messages on the command line @@ -75,6 +80,7 @@ local function get_base() WarningMsg = { fg = cp.yellow }, -- warning messages Whitespace = { fg = cp.surface1 }, -- "nbsp", "space", "tab" and "trail" in 'listchars' WildMenu = { bg = cp.overlay0 }, -- current match in 'wildmenu' completion + WinBar = { fg = cp.rosewater }, -- These groups are not listed as default vim groups, -- but they are defacto standard group names for syntax highlighting. -- overlay0ed out groups should chain up to their "preferred" group by