From f54266dbed6f1a4cb4fad3486a722a25070d7feb Mon Sep 17 00:00:00 2001 From: nikolightsaber <103886134+nikolightsaber@users.noreply.github.com> Date: Fri, 1 Nov 2024 10:03:09 +0100 Subject: [PATCH] fix(lsp): hover border type can be string (#31013) Border type can also be a string as defined in `api-win_config` Co-authored-by: Nikolai Devolder --- runtime/doc/lsp.txt | 3 ++- runtime/lua/vim/lsp/util.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 751a66771c..804eb171f7 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -1872,7 +1872,8 @@ Lua module: vim.lsp.util *lsp-util* floating window with the same {focus_id} • {offset_x}? (`integer`) offset to add to `col` • {offset_y}? (`integer`) offset to add to `row` - • {border}? (`(string|[string,string])[]`) override `border` + • {border}? (`string|(string|[string,string])[]`) override + `border` • {zindex}? (`integer`) override `zindex`, defaults to 50 • {title}? (`string`) • {title_pos}? (`'left'|'center'|'right'`) diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index 41f93e5374..763cd940c3 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -1485,7 +1485,7 @@ end --- --- offset to add to `row` --- @field offset_y? integer ---- @field border? (string|[string,string])[] override `border` +--- @field border? string|(string|[string,string])[] override `border` --- @field zindex? integer override `zindex`, defaults to 50 --- @field title? string --- @field title_pos? 'left'|'center'|'right'