From 0790e08f52a9606eaadc70c1f2825fc427d979ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Mon, 22 Sep 2025 21:57:19 +0200 Subject: [PATCH] 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. --- runtime/doc/diagnostic.txt | 2 +- runtime/lua/vim/diagnostic.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt index dd5340a4d9..ffe3340bbf 100644 --- a/runtime/doc/diagnostic.txt +++ b/runtime/doc/diagnostic.txt @@ -626,7 +626,7 @@ Lua module: vim.diagnostic *diagnostic-api* diagnostic instead of prepending it. Overrides the setting from |vim.diagnostic.config()|. • {focus_id}? (`string`) - • {border}? (`string`) see |nvim_open_win()|. + • {border}? (`string|string[]`) see |nvim_open_win()|. *vim.diagnostic.Opts.Jump* diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua index 5a375ec267..e8805bc288 100644 --- a/runtime/lua/vim/diagnostic.lua +++ b/runtime/lua/vim/diagnostic.lua @@ -186,7 +186,7 @@ end --- --- @field focus_id? string --- ---- @field border? string see |nvim_open_win()|. +--- @field border? string|string[] see |nvim_open_win()|. --- @class vim.diagnostic.Opts.Underline ---