Skip to content

Commit 2e49cb7

Browse files
authored
Merge pull request #153 from ofseed/main
Explicitly set window borders
2 parents 5cdf84c + a539f54 commit 2e49cb7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/scrollview.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ local with_win_workspace = function(winid, fun)
453453
return api.nvim_open_win(bufnr, false, {
454454
relative = 'editor',
455455
focusable = false,
456+
border = 'none',
456457
width = math.max(1, api.nvim_win_get_width(winid)),
457458
-- The floating window doesn't inherit a winbar. Use the
458459
-- winbar-omitted height where applicable.
@@ -1560,6 +1561,7 @@ local show_scrollbar = function(winid, bar_winid)
15601561
relative = 'win',
15611562
focusable = false,
15621563
style = 'minimal',
1564+
border = 'none',
15631565
height = height,
15641566
width = bar_width,
15651567
row = bar_position.row - 1,
@@ -1920,6 +1922,7 @@ local show_signs = function(winid, sign_winids, bar_winid)
19201922
relative = 'win',
19211923
focusable = false,
19221924
style = 'minimal',
1925+
border = 'none',
19231926
height = 1,
19241927
width = sign_width,
19251928
row = row - 1,
@@ -3182,6 +3185,7 @@ local handle_mouse = function(button, is_primary, init_props, init_mousepos)
31823185
local popup_win = api.nvim_open_win(popup_bufnr, false, {
31833186
relative = 'editor',
31843187
focusable = false,
3188+
border = 'none',
31853189
width = 1,
31863190
height = 1,
31873191
row = mousepos.screenrow - 1,

0 commit comments

Comments
 (0)