Skip to content

Commit 7856f05

Browse files
authored
feat: add bold style for border (#1687)
bold style for winborder added in neovim 0.11.1 - neovim/neovim#33221 - neovim/neovim#33189 Signed-off-by: Laurent Cheylus <[email protected]>
1 parent f2e4f6a commit 7856f05

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lua/blink/cmp/config/shared.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
--- @alias blink.cmp.WindowBorderChar string | table
2-
--- @alias blink.cmp.WindowBorder nil | 'single' | 'double' | 'rounded' | 'solid' | 'shadow' | 'padded' | 'none' | blink.cmp.WindowBorderChar[] When set to `nil`, uses the `vim.o.winborder` value on nvim 0.11+
2+
--- @alias blink.cmp.WindowBorder nil | 'single' | 'double' | 'rounded' | 'solid' | 'shadow' | 'bold' | 'padded' | 'none' | blink.cmp.WindowBorderChar[] When set to `nil`, uses the `vim.o.winborder` value on nvim 0.11+

lua/blink/cmp/lib/window/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ local utils = require('blink.cmp.lib.window.utils')
3636
--- @field set_option_value fun(self: blink.cmp.Window, option: string, value: any)
3737
--- @field update_size fun(self: blink.cmp.Window)
3838
--- @field get_content_height fun(self: blink.cmp.Window): number
39-
--- @field get_border_size fun(self: blink.cmp.Window, border?: 'none' | 'single' | 'double' | 'rounded' | 'solid' | 'shadow' | 'padded' | string[]): { vertical: number, horizontal: number, left: number, right: number, top: number, bottom: number }
39+
--- @field get_border_size fun(self: blink.cmp.Window, border?: 'none' | 'single' | 'double' | 'rounded' | 'solid' | 'shadow' | 'bold' | 'padded' | string[]): { vertical: number, horizontal: number, left: number, right: number, top: number, bottom: number }
4040
--- @field expand_border_chars fun(border: string[]): string[]
4141
--- @field get_height fun(self: blink.cmp.Window): number
4242
--- @field get_content_width fun(self: blink.cmp.Window): number

lua/blink/cmp/lib/window/utils.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ local utils = {}
22

33
--- @param border blink.cmp.WindowBorder
44
--- @param default blink.cmp.WindowBorder
5-
--- @return 'none' | 'single' | 'double' | 'rounded' | 'solid' | 'shadow' | 'padded' | string[]
5+
--- @return 'none' | 'single' | 'double' | 'rounded' | 'solid' | 'shadow' | 'bold' | 'padded' | string[]
66
function utils.pick_border(border, default)
77
if border ~= nil then return border end
88

0 commit comments

Comments
 (0)