Popup windows in Vim currently have no transparency support. Users cannot create semi-transparent overlays that allow underlying text to be visible through the popup.
So, add a new opacity option for popup windows that controls transparency level.
https://github.com/user-attachments/assets/cd8c2f9e-f6f5-42c6-b7c1-ef7e82fcfb71
### Usage ```vim " Create a popup with 50% opacity (semi-transparent) let winid = popup_create('Semi-transparent text', #{ \ line: 5, \ col: 10, \ opacity: 50, \ }) " Change opacity dynamically call popup_setoptions(winid, #{opacity: 80}) " Get current opacity value echo popup_getoptions(winid).opacity
0 - Fully transparent (background text fully visible)100 - Fully opaque (default, no transparency)1-99 - Partially transparent'termguicolors' to be enabled for the blending effect to workhttps://github.com/vim/vim/pull/19272
(8 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@mattn pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()