Skip to content

Conversation

@nojnhuh
Copy link

@nojnhuh nojnhuh commented Oct 16, 2025

Description

This PR allows 'winborder' to inform how the border of the main UI window is displayed.

  • When ui.border is set, its value is used
  • Otherwise if 'winborder' is set, its value is used
  • If neither is set, then the implicit default 'winborder' is used ("none", same as the old ui.border default)

Notably, users who set ui.border or do not set 'winborder' will see no changes.

Related Issue(s)

Screenshots

Both with:set winborder=single and ui.border unset.

(The border surrounding the backdrop window is being addressed in #2072.)

Before:
image

After:
image

wrap = true, -- wrap the lines in the ui
-- The border to use for the UI window. Accepts same border values as |nvim_open_win()|.
border = "none",
border = nil, ---@type string|string[]|nil
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see this table also appears in doc/lazy.nvim.txt. Do I need to mirror this change there manually?

@AtifChy
Copy link

AtifChy commented Oct 23, 2025

while you are at it, also remove the border from backdrop.

@nojnhuh
Copy link
Author

nojnhuh commented Oct 23, 2025

I opened #2072 to address the border on the backdrop window. Should I close that PR and make that change here instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature: Respect 'winborder'

2 participants