Skip to content

Commit 52f6387

Browse files
committed
fix: allow border to be a table
Closes #398
1 parent 04ff262 commit 52f6387

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lua/blink/cmp/config/completion/documentation.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function documentation.validate(config)
5959
min_width = { config.window.min_width, 'number' },
6060
max_width = { config.window.max_width, 'number' },
6161
max_height = { config.window.max_height, 'number' },
62-
border = { config.window.border, 'string' },
62+
border = { config.window.border, { 'string', 'table' } },
6363
winblend = { config.window.winblend, 'number' },
6464
winhighlight = { config.window.winhighlight, 'string' },
6565
scrollbar = { config.window.scrollbar, 'boolean' },

lua/blink/cmp/config/completion/menu.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function window.validate(config)
106106
enabled = { config.enabled, 'boolean' },
107107
min_width = { config.min_width, 'number' },
108108
max_height = { config.max_height, 'number' },
109-
border = { config.border, 'string' },
109+
border = { config.border, { 'string', 'table' } },
110110
scrollbar = { config.scrollbar, 'boolean' },
111111
order = { config.order, 'table' },
112112
direction_priority = { config.direction_priority, 'table' },

lua/blink/cmp/config/signature.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function signature.validate(config)
6060
min_width = { config.window.min_width, 'number' },
6161
max_width = { config.window.max_width, 'number' },
6262
max_height = { config.window.max_height, 'number' },
63-
border = { config.window.border, 'string' },
63+
border = { config.window.border, { 'string', 'table' } },
6464
winblend = { config.window.winblend, 'number' },
6565
winhighlight = { config.window.winhighlight, 'string' },
6666
scrollbar = { config.window.scrollbar, 'boolean' },

0 commit comments

Comments
 (0)