Skip to content

Commit b9fd522

Browse files
neovim 0.11 introduced winborder: neovim/neovim#31074 (#649)
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.
1 parent 857c5ac commit b9fd522

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lua/plenary/popup/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ function popup.create(what, vim_options)
191191
local win_opts = {}
192192
win_opts.relative = "editor"
193193
win_opts.style = "minimal"
194+
win_opts.border = "none"
194195

195196
-- Add positional and sizing config to win_opts
196197
add_position_config(win_opts, vim_options, { width = 1, height = 1 })

lua/plenary/window/border.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ function Border:__align_calc_config(content_win_options, border_win_options)
231231
zindex = content_win_options.zindex or 50,
232232
noautocmd = content_win_options.noautocmd,
233233
focusable = vim.F.if_nil(border_win_options.focusable, false),
234+
border = "none",
234235
}
235236

236237
return nvim_win_config

0 commit comments

Comments
 (0)