Skip to content

feature: Respect 'winborder' #1951

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
1 task done
Tracked by #2772
andrewbraxton opened this issue Mar 19, 2025 · 5 comments
Open
1 task done
Tracked by #2772

feature: Respect 'winborder' #1951

andrewbraxton opened this issue Mar 19, 2025 · 5 comments
Labels
enhancement New feature or request

Comments

@andrewbraxton
Copy link

Did you check the docs?

  • I have read all the lazy.nvim docs

Is your feature request related to a problem? Please describe.

Neovim has just added a 'winborder' option to set the default border style for floating windows: neovim/neovim@62d9fab

Describe the solution you'd like

It would be great if 'winborder' was respected in the case where lazy's ui.border setting is unset but 'winborder' is set!

Describe alternatives you've considered

N/A

Additional context

No response

@andrewbraxton andrewbraxton added the enhancement New feature or request label Mar 19, 2025
@mehalter
Copy link

In other cases the border is also applying for stuff like the background which should probably not follow the winborder setting:

Image

@andrewbraxton
Copy link
Author

That looks similar to ibhagwan/fzf-lua#1907 (comment)

Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Apr 22, 2025
@mehalter
Copy link

This isn't stale and based on the reactions is highly desired

@github-actions github-actions bot removed the stale label Apr 23, 2025
@chrisgrieser
Copy link

chrisgrieser commented May 7, 2025

To remove the border from the backdrop, you can use this small workaround until folke returns:

vim.api.nvim_create_autocmd("FileType", {
	desc = "User: fix backdrop for lazy window",
	pattern = "lazy_backdrop",
	group = vim.api.nvim_create_augroup("lazynvim-fix", { clear = true }),
	callback = function(ctx)
		local win = vim.fn.win_findbuf(ctx.buf)[1]
		vim.api.nvim_win_set_config(win, { border = "none" })
	end,
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants