Skip to content

Commit

Permalink
fix(config): warn on 'none' background
Browse files Browse the repository at this point in the history
Related to #19
  • Loading branch information
rcarriga committed Sep 9, 2021
1 parent 118444c commit 2f5559d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/notify/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ local function validate_highlight(colour_or_group, needs_opacity)
return colour_or_group
end
local group_bg = vim.fn.synIDattr(vim.fn.synIDtrans(vim.fn.hlID(colour_or_group)), "bg")
if group_bg == "" then
if group_bg == "" or group_bg == "none" then
if needs_opacity then
vim.schedule(function()
vim.notify(
Expand Down

0 comments on commit 2f5559d

Please sign in to comment.