mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(diff): fallback if Normal has no fg color. Closes #2436
This commit is contained in:
parent
493256ec10
commit
7f453c4f32
1 changed files with 1 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ local function diff_linenr(...)
|
|||
local fg = Snacks.util.color(vim.list_extend({ ... }, { "NormalFloat", "Normal" }))
|
||||
local bg = Snacks.util.color(vim.list_extend({ ... }, { "NormalFloat", "Normal" }), "bg")
|
||||
bg = bg or vim.o.background == "dark" and "#1e1e1e" or "#f5f5f5"
|
||||
fg = fg or vim.o.background == "dark" and "#f5f5f5" or "#1e1e1e"
|
||||
return {
|
||||
fg = fg,
|
||||
bg = Snacks.util.blend(fg, bg, 0.1),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue