From 213360c389dee96a2ec540d63035724c3cbfc5ac Mon Sep 17 00:00:00 2001 From: Sebastian Lyng Johansen Date: Thu, 10 Jul 2025 14:51:13 +0200 Subject: [PATCH] fix(lsp): custom 'winborder' in make_floating_popup_options() #34868 --- runtime/lua/vim/lsp/util.lua | 5 +++++ 1 file changed, 5 insertions(+) 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)