Skip to content

Commit 0aa22f4

Browse files
danielrainerDaniel Rainer
andauthored
feat: respect winborder variable (#2206)
If `window.bordered()` is used without specifying a border in its argument, the fallback should respect the user's winborder variable, instead of defaulting to `rounded`. Co-authored-by: Daniel Rainer <daniel.rainer@localhost>
1 parent 9a0a90a commit 0aa22f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/cmp/config/window.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ local window = {}
33
window.bordered = function(opts)
44
opts = opts or {}
55
return {
6-
border = opts.border or 'rounded',
6+
border = opts.border or window.get_border(),
77
winhighlight = opts.winhighlight or 'Normal:Normal,FloatBorder:FloatBorder,CursorLine:Visual,Search:None',
88
zindex = opts.zindex or 1001,
99
scrolloff = opts.scrolloff or 0,

0 commit comments

Comments
 (0)