Skip to content

Commit

Permalink
fix: remove transparent search and code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
5-pebbles committed Mar 1, 2024
1 parent c263eea commit 4856cf8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lua/nordic/colors/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function C.extend_palette()
C.bg_dark = (options.transparent_bg and C.none) or C.black0
C.bg_sidebar = (options.transparent_bg and C.none) or C.bg
C.bg_popup = (options.transparent_bg and C.none) or C.bg
C.bg_highlight = (options.swap_backgrounds and C.gray0) or C.black1
C.bg_statusline = C.bg_dark
C.bg_selected = U.blend(C.gray2, C.black0, 0.4)
C.bg_fold = C.gray2
Expand All @@ -39,9 +40,8 @@ function C.extend_palette()
options.cursorline.bg = C.bg_dark
end

C.bg_highlight = (options.transparent_bg and options.cursorline.bg)
C.bg_visual = (options.transparent_bg and options.cursorline.bg)
or U.blend(options.cursorline.bg, C.bg, options.cursorline.blend)
C.bg_visual = C.bg_highlight

-- Borders
C.border_fg = (options.bright_border and C.white0) or C.black0
Expand Down
8 changes: 4 additions & 4 deletions lua/nordic/groups/native.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function M.get_groups()
G.htmlH1 = { fg = C.yellow.base, bold = true }
G.htmlH2 = { fg = C.orange.base }
G.Link = { fg = C.blue1, underline = true }
G.CodeBlock = { bg = C.bg_float, fg = C.fg }
G.CodeBlock = { bg = C.bg_highlight, fg = C.fg }
G.mkdHeading = { link = 'htmlH1' }
G.mkdCode = { link = 'CodeBlock' }
G.mkdCodeDelimiter = { link = 'CodeBlock' }
Expand Down Expand Up @@ -128,8 +128,8 @@ function M.get_groups()
G.Cursor = { fg = C.black0, bg = C.fg } -- character under the cursor
G.lCursor = { fg = C.black0 } -- the character under the cursor when |language-mapping| is used (see 'guicursor')
G.CursorIM = { fg = C.black0 } -- like Cursor, but used when in IME mode |CursorIM|
G.CursorColumn = { bg = C.bg_highlight, bold = O.cursorline.bold } -- Screen-column at the cursor, when 'cursorcolumn' is set.
G.CursorLine = { bg = C.bg_highlight, bold = O.cursorline.bold } -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.
G.CursorColumn = { bg = C.bg_visual, bold = O.cursorline.bold } -- Screen-column at the cursor, when 'cursorcolumn' is set.
G.CursorLine = { bg = C.bg_visual, bold = O.cursorline.bold } -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.
G.CursorLineNr = { fg = C.gray5, bold = O.cursorline.bold_number } -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
G.CursorLineSign = {}
G.Directory = { fg = C.blue1 } -- directory names (and other special names in listings)
Expand Down Expand Up @@ -163,7 +163,7 @@ function M.get_groups()
G.PmenuThumb = { bg = C.gray2, fg = C.gray2 } -- Popup menu: Thumb of the scrollbar.
G.Question = { fg = C.info } -- |hit-enter| prompt and yes/no questions
G.QuickFixLine = { bg = C.bg_visual, bold = true } -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
G.Search = { bg = C.bg_float, fg = C.yellow.bright, bold = true, underline = true } -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
G.Search = { bg = C.bg_highlight, fg = C.yellow.bright, bold = true, underline = true } -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
G.IncSearch = { bg = C.yellow.base, fg = C.black0, bold = true } -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
G.CurSearch = { link = 'IncSearch' }
G.SpecialKey = { fg = C.gray5 } -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|
Expand Down

0 comments on commit 4856cf8

Please sign in to comment.