Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: transparency for mini.notify not present. #525

Open
3 tasks done
231tr0n opened this issue May 12, 2024 · 0 comments
Open
3 tasks done

bug: transparency for mini.notify not present. #525

231tr0n opened this issue May 12, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@231tr0n
Copy link

231tr0n commented May 12, 2024

Did you check docs and existing issues?

  • I have read all the tokyonight.nvim docs
  • I have searched the existing issues of tokyonight.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

v0.10.0-dev-3117+g4e5c633ed

Operating system/version

Ubuntu 24.04 WSL

Describe the bug

Transparency for mini.notify notifications are not present as they were for nvim-notify.

Steps To Reproduce

Install tokyonight.nvim and mini.notify with any package manager.

require("tokyonight").setup({
	style = "night", -- The theme comes in three styles, `storm`, `moon`, a darker variant `night` and `day`
	light_style = "day", -- The theme is used when the background is set to light
	transparent = true,
	terminal_colors = true,
	styles = {
		comments = { italic = true },
		keywords = { italic = true },
		functions = {},
		variables = {},
		sidebars = "transparent",
		floats = "transparent",
	},
	sidebars = { "qf", "help" },
	day_brightness = 0.3,
	hide_inactive_statusline = true,
	dim_inactive = true,
	lualine_bold = false,
})
require("mini.notify").setup({
	window = {
		max_width_share = 0.5,
		-- winblend = 100,
	},
})
vim.notify = MiniNotify.make_notify()

You can see that notifications for mini.notify are not transparent.
image

Expected Behavior

image
The notification background was expected to be transparent like above but it does not for nvim-notify like below
image

Repro

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
	vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
	vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
	"folke/tokyonight.nvim",
	"echasnovski/mini.notify",
	-- add any other plugins here
}
require("lazy").setup(plugins, {
	root = root .. "/plugins",
})

require("tokyonight").setup({
	style = "night", -- The theme comes in three styles, `storm`, `moon`, a darker variant `night` and `day`
	light_style = "day", -- The theme is used when the background is set to light
	transparent = true,
	terminal_colors = true,
	styles = {
		comments = { italic = true },
		keywords = { italic = true },
		functions = {},
		variables = {},
		sidebars = "transparent",
		floats = "transparent",
	},
	sidebars = { "qf", "help" },
	day_brightness = 0.3,
	hide_inactive_statusline = true,
	dim_inactive = true,
	lualine_bold = false,
})
require("mini.notify").setup({
	window = {
		max_width_share = 0.5,
		winblend = 0,
	},
})
vim.notify = MiniNotify.make_notify()

vim.cmd.colorscheme("tokyonight")
-- add anything else here
@231tr0n 231tr0n added the bug Something isn't working label May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants