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 <nikolai.devolder@yamabiko.eu>
This commit is contained in:
nikolightsaber 2024-11-01 10:03:09 +01:00 committed by GitHub
parent b34e137e43
commit f54266dbed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -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'`)

View File

@ -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'