Skip to content

fix: handle winborder in neovim-0.11 #649

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

emmanueltouzery
Copy link

@emmanueltouzery emmanueltouzery commented Mar 30, 2025

neovim 0.11 introduced winborder: neovim/neovim#31074

This means that the user may override the global window border for all windows for which the border wasn't explicitly set.

In the past we achieved borderless windows by not specifying a border, but with winborder, the user may set the border and then the UI looks broken. So now we explicitly say that we want no border on the windows where we intended it so.

I tested this commit on neovim 0.10.2 as well, without issues.

To reproduce the issue on neovim 0.11, run:

:lua vim.o.winborder = "rounded"

and for instance open telescope, which is a plenary-using plugin showing the issue.

fixes nvim-telescope/telescope.nvim#3436

note that i do NOT have a clear vision of the whole plenary popups code, i just found the two windows that got a border with winborder that shouldn't, and enforced no border.

This means that the user may override the global window border for all
windows for which the border wasn't explicitly set.
For the scrollbar and the scrollbar thumb, we don't want any border.

In the past we achieved that by now specifying a border, but with
winborder, the user may set the border and then the scrollbar looks
broken. So now we explicitly say that we want no border on these two
windows, fixing the issue.
@emmanueltouzery emmanueltouzery changed the title neovim 0.11 introduced winborder: neovim/neovim#31074 fix: handle winborder in neovim-0.11 Mar 30, 2025
@miekg
Copy link

miekg commented Apr 28, 2025

works for me

@guru245
Copy link

guru245 commented Apr 29, 2025

works for me.

@Holub-Patrik
Copy link

works for me

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.

support 0.11 'winborder'
4 participants