Enabling `ui2` breaks transparency consistency in `MsgArea`
bug
### Description
A very minor inconsistency – enabling the new ui2 with:
```
require('vim._core.ui2').enable()
```
Changes how the message/command line looks like – it makes the line darker and disables transparency. I believe that this effect is not desired.
How it look with the old messages UI:
<img width="777" height="555" alt="Image" src="https://github.com/user-attachments/assets/192bec4a-77d3-43f5-a5e0-8cdaf347d691" />
And with the new UI:
<img width="777" height="555" alt="Image" src="https://github.com/user-attachments/assets/57a6538b-20a1-4fcf-93a2-332ee9534f84" />
My catppuccin setup:
```lua
require("catppuccin").setup({
transparent_background = true,
dim_inactive = { enabled = true },
})
vim.cmd.colorscheme("catppuccin")
```
### Neovim version
```markdown
NVIM v0.12.2
Build type: Release
LuaJIT 2.1.1774896198
Run "nvim -V1 -v" for more info
```
### Terminal and multiplexer
Ghostty 1.3.1
### Catppuccin version / branch / rev
main
### Steps to reproduce
1. Set up config with:
```lua
vim.pack.add({
"https://github.com/catppuccin/nvim",
})
require("catppuccin").setup({
transparent_background = true,
dim_inactive = { enabled = true },
})
vim.cmd.colorscheme("catppuccin")
```
2. Everything looks "normal"
3. Add `require('vim._core.ui2').enable()` to your config
4. Save and reload
5. The command/mgs line will be darker
### Expected behavior
Enabling ui2 should not make the msg area darker and non-transparent
### Actual behavior
The msg area becomes darker and non-transparent when ui2 is enabled
### Repro
```Lua
require('vim._core.ui2').enable()
vim.pack.add({
"https://github.com/catppuccin/nvim",
})
require("catppuccin").setup({
transparent_background = true,
dim_inactive = { enabled = true },
})
vim.cmd.colorscheme("catppuccin")
```
0 条评论