docs(lsp): Clarify opts for show_line_diagnostics()

This commit is contained in:
Shadman
2021-06-16 12:21:04 +06:00
committed by GitHub
parent 6a77def1ee
commit 3df0e475e8
2 changed files with 6 additions and 0 deletions

View File

@@ -1547,6 +1547,10 @@ show_line_diagnostics({opts}, {bufnr}, {line_nr}, {client_id})
{opts} table Configuration table
• 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.
{bufnr} number The buffer number
{line_nr} number The line number
{client_id} number|nil the client id

View File

@@ -1123,6 +1123,8 @@ end
--- </pre>
---@param opts table Configuration table
--- - 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 line_nr number The line number
---@param client_id number|nil the client id