Transparent background not working after latest neovim update
bug
### Description
The transparent_background isn't working anymore since the latest neovim update
```
return {
{
"catppuccin/nvim",
name = "catppuccin",
priority = 1000,
lazy = true,
opts = {
flavour = "mocha",
transparent_background = true,
float = {
transparent = true,
},
},
},
{
"LazyVim/LazyVim",
opts = {
colorscheme = "catppuccin",
},
},
specs = {
{
"akinsho/bufferline.nvim",
optional = true,
opts = function(_, opts)
if (vim.g.colors_name or ""):find("catppuccin") then
opts.highlights = require("catppuccin.special.bufferline").get_theme()
end
end,
},
},
}
```
### Neovim version
```markdown
NVIM v0.12.1
Build type: RelWithDebInfo
LuaJIT 2.1.1774896198
```
### Terminal and multiplexer
kitty 0.46.2
### Catppuccin version / branch / rev
catppuccin 2.0
### Steps to reproduce
open neovim with `transparent_background = true`
### Expected behavior
for the background to be transparent
### Actual behavior
background is not transparent
### Repro
```Lua
-- 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",
-- add any other plugins here
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
vim.cmd.colorscheme("catppuccin-nvim")
-- add anything else here
```
关闭于 2026-04-07 2 条评论