From f8e2b3fe8ecefaddf9ded87db03daa891a6975e2 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 19 May 2023 22:07:01 +0200 Subject: Add transparency to more highlight groups --- lua/no-clown-fiesta/groups/highlights.lua | 21 ++++++++++++++++----- lua/no-clown-fiesta/groups/telescope.lua | 5 ++++- 2 files changed, 20 insertions(+), 6 deletions(-) (limited to 'lua/no-clown-fiesta/groups') diff --git a/lua/no-clown-fiesta/groups/highlights.lua b/lua/no-clown-fiesta/groups/highlights.lua index ef547b9..a041e9c 100644 --- a/lua/no-clown-fiesta/groups/highlights.lua +++ b/lua/no-clown-fiesta/groups/highlights.lua @@ -6,19 +6,28 @@ function M.highlight(palette, opts) fg = palette.fg, bg = opts.transparent and palette.none or palette.bg, }, - SignColumn = { bg = palette.bg }, - MsgArea = { fg = palette.fg, bg = palette.bg }, + SignColumn = { bg = opts.transparent and palette.none or palette.bg }, + MsgArea = { + fg = palette.fg, + bg = opts.transparent and palette.none or palette.bg, + }, ModeMsg = { fg = palette.fg, bg = palette.bg }, MsgSeparator = { fg = palette.fg, bg = palette.bg }, SpellBad = { sp = palette.error, undercurl = true }, SpellCap = { sp = palette.yellow, undercurl = true }, SpellLocal = { sp = palette.sign_add, undercurl = true }, SpellRare = { sp = palette.purple, undercurl = true }, - NormalNC = { fg = palette.fg, bg = palette.bg }, + NormalNC = { + fg = palette.fg, + bg = opts.transparent and palette.none or palette.bg, + }, Pmenu = { fg = palette.light_gray, bg = palette.accent }, PmenuSel = { fg = palette.blue, bg = palette.alt_bg }, WildMenu = { fg = palette.blue, bg = palette.alt_bg }, - CursorLineNr = { fg = palette.light_gray, bold = true }, + CursorLineNr = { + fg = palette.light_gray, + bold = true, + }, Comment = vim.tbl_extend( "force", { fg = palette.medium_gray }, @@ -29,7 +38,9 @@ function M.highlight(palette, opts) LineNr = { fg = palette.gray }, Whitespace = { fg = palette.gray }, VertSplit = { fg = palette.bg, bg = palette.accent }, - CursorLine = { bg = palette.alt_bg }, + CursorLine = { + bg = palette.alt_bg, + }, CursorColumn = { bg = palette.alt_bg }, ColorColumn = { bg = palette.alt_bg }, NormalFloat = { diff --git a/lua/no-clown-fiesta/groups/telescope.lua b/lua/no-clown-fiesta/groups/telescope.lua index cfd9a32..ae4b880 100644 --- a/lua/no-clown-fiesta/groups/telescope.lua +++ b/lua/no-clown-fiesta/groups/telescope.lua @@ -8,7 +8,10 @@ function M.highlight(palette, opts) }, TelescopeSelection = { fg = palette.fg, bg = palette.accent }, TelescopeMatching = { fg = palette.orange, bold = true }, - TelescopeBorder = { fg = palette.light_gray, bg = palette.bg }, + TelescopeBorder = { + fg = palette.light_gray, + bg = opts.transparent and palette.none or palette.bg, + }, } end -- cgit v1.2.3-70-g09d2