diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index 08a09f500d..d23b4816e0 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -39,6 +39,11 @@ local function get_border_size(opts) border = 'none' end + -- Convert winborder string option with custom characters into a table + if type(border) == 'string' and border:find(',') then + border = vim.split(border, ',') + end + if type(border) == 'string' then if not border_size[border] then border_error(border)