mirror of
https://github.com/neovim/neovim.git
synced 2025-12-17 03:45:42 +00:00
docs(lsp): Clarify opts for show_line_diagnostics()
This commit is contained in:
@@ -1547,6 +1547,10 @@ show_line_diagnostics({opts}, {bufnr}, {line_nr}, {client_id})
|
|||||||
{opts} table Configuration table
|
{opts} table Configuration table
|
||||||
• show_header (boolean, default true): Show
|
• show_header (boolean, default true): Show
|
||||||
"Diagnostics:" header.
|
"Diagnostics:" header.
|
||||||
|
• Plus all the opts for
|
||||||
|
|vim.lsp.diagnostic.get_line_diagnostics()|
|
||||||
|
and |vim.lsp.util.open_floating_preview()|
|
||||||
|
can be used here.
|
||||||
{bufnr} number The buffer number
|
{bufnr} number The buffer number
|
||||||
{line_nr} number The line number
|
{line_nr} number The line number
|
||||||
{client_id} number|nil the client id
|
{client_id} number|nil the client id
|
||||||
|
|||||||
@@ -1123,6 +1123,8 @@ end
|
|||||||
--- </pre>
|
--- </pre>
|
||||||
---@param opts table Configuration table
|
---@param opts table Configuration table
|
||||||
--- - show_header (boolean, default true): Show "Diagnostics:" header.
|
--- - show_header (boolean, default true): Show "Diagnostics:" header.
|
||||||
|
--- - Plus all the opts for |vim.lsp.diagnostic.get_line_diagnostics()|
|
||||||
|
--- and |vim.lsp.util.open_floating_preview()| can be used here.
|
||||||
---@param bufnr number The buffer number
|
---@param bufnr number The buffer number
|
||||||
---@param line_nr number The line number
|
---@param line_nr number The line number
|
||||||
---@param client_id number|nil the client id
|
---@param client_id number|nil the client id
|
||||||
|
|||||||
Reference in New Issue
Block a user