diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-05-19 22:07:01 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-05-19 22:07:01 +0200 |
commit | f8e2b3fe8ecefaddf9ded87db03daa891a6975e2 (patch) | |
tree | 7c47aa0507c9494de033b0d05672cade9cefaa86 /lua/no-clown-fiesta | |
parent | f1f2218f3f26dee892613446da06a5db52e485ce (diff) |
Add transparency to more highlight groups
Diffstat (limited to 'lua/no-clown-fiesta')
-rw-r--r-- | lua/no-clown-fiesta/groups/highlights.lua | 21 | ||||
-rw-r--r-- | lua/no-clown-fiesta/groups/telescope.lua | 5 |
2 files changed, 20 insertions, 6 deletions
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 |