Skip to content

Commit

Permalink
fix: improve correctness of neovim version checking (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Feb 17, 2024
1 parent 7138c86 commit 8836014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/notify/config/init.lua
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() and vim.version().minor < 10 then
if needs_opacity and not vim.opt.termguicolors:get() and vim.fn.has("nvim-0.10") == 0 then
user_config.stages = BUILTIN_STAGES.STATIC
vim.schedule(function()
vim.notify(
Expand Down

0 comments on commit 8836014

Please sign in to comment.