[vim/vim] Add dedicated highlight groups (Popup, PopupBorder, PopupTitle) for popup windows similar to Neovim (Issue #20110)

1 view
Skip to first unread message

Mao-Yining

unread,
11:29 AM (2 hours ago) 11:29 AM
to vim/vim, Subscribed
mao-yining created an issue (vim/vim#20110)

Is your feature request about something that is currently impossible or hard to do? Please describe the problem.

Currently, popup windows for general information display (documentation preview, plugin UI) use the Pmenu highlight group by default. But Pmenu is designed for completion menus — colorschemes make it dark to contrast with PmenuSel. This makes Pmenu too dark for general info popups, forcing colorscheme authors to choose: dark Pmenu (good for completion, bad for popups) or light Pmenu (good for popups, bad for completion). Neovim solves this with dedicated groups: NormalFloat, FloatBorder, FloatTitle, FloatShadow.

Describe the solution you'd like

Add equivalent highlight groups to Vim:

  • Popup – popup content area
  • PopupBorder – border color
  • PopupTitle – title text

Fallback defaults: Popup links to Normal, PopupBorder links to Normal etc.

Describe alternatives you've considered

  • Using g:popup_highlight – but this is not standardized.

Additional context

As more plugins use popups for non-completion purposes (doc previews, floating trees), dedicated groups would align Vim with Neovim's approach. Vim already has popup-specific groups like PopupSelected — extending this family is natural.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20110@github.com>

Mao-Yining

unread,
11:29 AM (2 hours ago) 11:29 AM
to vim/vim, Subscribed
mao-yining left a comment (vim/vim#20110)

@habamax What do you think about this?


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20110/4360052948@github.com>

Reply all
Reply to author
Forward
0 new messages