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

Flash prompt appears black when winblend is set #604

Closed
jamestansx opened this issue Nov 1, 2023 · 0 comments · Fixed by #605
Closed

Flash prompt appears black when winblend is set #604

jamestansx opened this issue Nov 1, 2023 · 0 comments · Fixed by #605
Labels
bug Something isn't working

Comments

@jamestansx
Copy link
Contributor

Description

If winblend is set, flash prompt's background will appear black.

Neovim version

NVIM v0.9.4
Build type: Release
LuaJIT 2.1.1697887905

Terminal and multiplexer

alacritty 0.12.3 (5efb0690)

Catppuccin version / branch / rev

main / b359f3e

Steps to reproduce

  1. nvim -u repro.lua
  2. Press s to open flash's jump
  3. Notice the prompt is black

Expected behavior

It should behave like other float windows.

Actual behavior

The prompt's background is black instead.

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 = {
	{
		"catppuccin/nvim",
		name = "catppuccin",
		lazy = true,
		init = function()
			vim.opt.winblend = 10 -- important
		end,
		opts = {
			transparent_background = true,
		},
	},
	-- add any other plugins here
	{
		"folke/flash.nvim",
		event = "VeryLazy",
		opts = {},
		keys = {
			{
				"s",
				mode = { "n", "x", "o" },
				function()
					require("flash").jump()
				end,
				desc = "Flash",
			},
		},
	},
}
require("lazy").setup(plugins, {
	root = root .. "/plugins",
})

vim.cmd.colorscheme("catppuccin")
-- add anything else here
@jamestansx jamestansx added the bug Something isn't working label Nov 1, 2023
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

Successfully merging a pull request may close this issue.

1 participant