mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
docs(diagnostics): allow list of strings for vim.diagnostic.Opts.border (#35863)
Type checkers complain if we pass a list of strings, but this should be allowed.
This commit is contained in:

committed by
GitHub

parent
0275627fab
commit
0790e08f52
@@ -626,7 +626,7 @@ Lua module: vim.diagnostic *diagnostic-api*
|
|||||||
diagnostic instead of prepending it. Overrides the
|
diagnostic instead of prepending it. Overrides the
|
||||||
setting from |vim.diagnostic.config()|.
|
setting from |vim.diagnostic.config()|.
|
||||||
• {focus_id}? (`string`)
|
• {focus_id}? (`string`)
|
||||||
• {border}? (`string`) see |nvim_open_win()|.
|
• {border}? (`string|string[]`) see |nvim_open_win()|.
|
||||||
|
|
||||||
*vim.diagnostic.Opts.Jump*
|
*vim.diagnostic.Opts.Jump*
|
||||||
|
|
||||||
|
@@ -186,7 +186,7 @@ end
|
|||||||
---
|
---
|
||||||
--- @field focus_id? string
|
--- @field focus_id? string
|
||||||
---
|
---
|
||||||
--- @field border? string see |nvim_open_win()|.
|
--- @field border? string|string[] see |nvim_open_win()|.
|
||||||
|
|
||||||
--- @class vim.diagnostic.Opts.Underline
|
--- @class vim.diagnostic.Opts.Underline
|
||||||
---
|
---
|
||||||
|
Reference in New Issue
Block a user