Skip to content

Commit

Permalink
fix: only warn for termguicolors if version minor < 10 (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
seblj authored Dec 28, 2023
1 parent 27a6649 commit ebcdd82
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 @@ -183,7 +183,7 @@ function Config.setup(custom_config)
local needs_opacity =
vim.tbl_contains({ BUILTIN_STAGES.FADE_IN_SLIDE_OUT, BUILTIN_STAGES.FADE }, stages)

if needs_opacity and not vim.opt.termguicolors:get() then
if needs_opacity and not vim.opt.termguicolors:get() and vim.version().minor < 10 then
user_config.stages = BUILTIN_STAGES.STATIC
vim.schedule(function()
vim.notify(
Expand Down

0 comments on commit ebcdd82

Please sign in to comment.