We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecce93f commit bf47640Copy full SHA for bf47640
1 file changed
lua/tiny-inline-diagnostic/highlights.lua
@@ -64,12 +64,17 @@ end
64
---@return string
65
local function get_mixing_color(color)
66
if color == "None" then
67
- return vim.g.background == "light" and "#ffffff" or "#000000"
+ return vim.o.background == "light" and "#ffffff" or "#000000"
68
end
69
if color:sub(1, 1) == "#" then
70
return color
71
72
- return get_highlight(color).bg
+
73
+ local resolved = get_highlight(color).bg
74
+ if resolved == "None" then
75
76
+ end
77
+ return resolved
78
79
80
---Check if the cursorline is visible
0 commit comments