-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
Revert transparent background when winblend
/pumblend
option is set?
#401
Comments
Can you explain which highlight groups are affected, this is my cmp with winblend and pumblend and it seems correct to me: cc @emxxjnm Any insights on this problem? |
The affected highlight groups are I will be using this minimal minimal init.luavim.o.termguicolors = true
vim.o.winblend = 10
vim.o.pumblend = 10
vim.g.mapleader = " "
local lazypath = vim.fn.stdpath("data") .. "/lazy/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", "--branch=stable", lazypath, })
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
{
"catppuccin/nvim",
name = "catppuccin",
lazy = false,
priority = 1000,
opts = {
flavour = "mocha",
transparent_background = true,
},
config = function(_, opts)
require("catppuccin").setup(opts)
vim.cmd.colorscheme("catppuccin")
end
},
{
"nvim-telescope/telescope.nvim",
cmd = "Telescope",
version = false,
dependencies = { "nvim-lua/plenary.nvim" },
config = true,
}
}) If I open the popup menu, it will show in black colour. Same goes to the However, notice that telescope window does not affect because by default it sets |
So basically O.transparent_float = O.transparent_background and vim.o.winblend == 0
NormalFloat = { fg = C.text, bg = O.transparent_float and C.none or C.mantle } Is this the desired behavior? |
Yes, indeed! |
Can you checkout the { "catppuccin/nvim", branch = "blend" } |
I am sorry to comment on this closed issue, but I am curious about how to config the nvim-cmp like yours popup window? |
Is your feature request related to a problem? Please describe.
When the
transparent_background
is set, settingwinblend
and/orpumblend
would cause the bg to set to black. As a result, I have to override all the highlight that is set toNone
(including the integration's colors).Describe the solution you'd like
Perhaps just add a condition to check if
winblend
and/orpumblend
value is set for the respective highlight color.Describe alternatives you've considered
Manually overriding all the highlight groups that is affected, as what I'm doing now. However, it would be better if I do not need to configure manually as I would need to refer to the source code and find the corresponding color name.
Additional context
-
The text was updated successfully, but these errors were encountered: