Skip to content

Commit

Permalink
fix: allow border to be a table
Browse files Browse the repository at this point in the history
Closes #398
  • Loading branch information
Saghen committed Nov 28, 2024
1 parent 04ff262 commit 52f6387
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lua/blink/cmp/config/completion/documentation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function documentation.validate(config)
min_width = { config.window.min_width, 'number' },
max_width = { config.window.max_width, 'number' },
max_height = { config.window.max_height, 'number' },
border = { config.window.border, 'string' },
border = { config.window.border, { 'string', 'table' } },
winblend = { config.window.winblend, 'number' },
winhighlight = { config.window.winhighlight, 'string' },
scrollbar = { config.window.scrollbar, 'boolean' },
Expand Down
2 changes: 1 addition & 1 deletion lua/blink/cmp/config/completion/menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function window.validate(config)
enabled = { config.enabled, 'boolean' },
min_width = { config.min_width, 'number' },
max_height = { config.max_height, 'number' },
border = { config.border, 'string' },
border = { config.border, { 'string', 'table' } },
scrollbar = { config.scrollbar, 'boolean' },
order = { config.order, 'table' },
direction_priority = { config.direction_priority, 'table' },
Expand Down
2 changes: 1 addition & 1 deletion lua/blink/cmp/config/signature.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function signature.validate(config)
min_width = { config.window.min_width, 'number' },
max_width = { config.window.max_width, 'number' },
max_height = { config.window.max_height, 'number' },
border = { config.window.border, 'string' },
border = { config.window.border, { 'string', 'table' } },
winblend = { config.window.winblend, 'number' },
winhighlight = { config.window.winhighlight, 'string' },
scrollbar = { config.window.scrollbar, 'boolean' },
Expand Down

0 comments on commit 52f6387

Please sign in to comment.