mirror of
https://github.com/neovim/neovim.git
synced 2025-11-07 11:14:26 +00:00
doc: Fix incorrect LSP diagnostic-related helptags (#13388)
This commit is contained in:
@@ -247,7 +247,7 @@ For |lsp-notification|, each |lsp-handler| has this signature: >
|
|||||||
of a particular handler.
|
of a particular handler.
|
||||||
|
|
||||||
For an example, see:
|
For an example, see:
|
||||||
|vim.lsp.diagnostics.on_publish_diagnostics()|
|
|vim.lsp.diagnostic.on_publish_diagnostics()|
|
||||||
|
|
||||||
To configure a particular |lsp-handler|, see:
|
To configure a particular |lsp-handler|, see:
|
||||||
|lsp-handler-configuration|
|
|lsp-handler-configuration|
|
||||||
@@ -1123,7 +1123,7 @@ get_next({opts}) *vim.lsp.diagnostic.get_next()*
|
|||||||
Get the previous diagnostic closest to the cursor_position
|
Get the previous diagnostic closest to the cursor_position
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{opts} table See |vim.lsp.diagnostics.goto_next()|
|
{opts} table See |vim.lsp.diagnostic.goto_next()|
|
||||||
|
|
||||||
Return: ~
|
Return: ~
|
||||||
table Next diagnostic
|
table Next diagnostic
|
||||||
@@ -1133,7 +1133,7 @@ get_next_pos({opts}) *vim.lsp.diagnostic.get_next_pos()*
|
|||||||
current buffer.
|
current buffer.
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{opts} table See |vim.lsp.diagnostics.goto_next()|
|
{opts} table See |vim.lsp.diagnostic.goto_next()|
|
||||||
|
|
||||||
Return: ~
|
Return: ~
|
||||||
table Next diagnostic position
|
table Next diagnostic position
|
||||||
@@ -1142,7 +1142,7 @@ get_prev({opts}) *vim.lsp.diagnostic.get_prev()*
|
|||||||
Get the previous diagnostic closest to the cursor_position
|
Get the previous diagnostic closest to the cursor_position
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{opts} table See |vim.lsp.diagnostics.goto_next()|
|
{opts} table See |vim.lsp.diagnostic.goto_next()|
|
||||||
|
|
||||||
Return: ~
|
Return: ~
|
||||||
table Previous diagnostic
|
table Previous diagnostic
|
||||||
@@ -1152,7 +1152,7 @@ get_prev_pos({opts}) *vim.lsp.diagnostic.get_prev_pos()*
|
|||||||
current buffer.
|
current buffer.
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{opts} table See |vim.lsp.diagnostics.goto_next()|
|
{opts} table See |vim.lsp.diagnostic.goto_next()|
|
||||||
|
|
||||||
Return: ~
|
Return: ~
|
||||||
table Previous diagnostic position
|
table Previous diagnostic position
|
||||||
@@ -1215,7 +1215,7 @@ goto_prev({opts}) *vim.lsp.diagnostic.goto_prev()*
|
|||||||
Move to the previous diagnostic
|
Move to the previous diagnostic
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{opts} table See |vim.lsp.diagnostics.goto_next()|
|
{opts} table See |vim.lsp.diagnostic.goto_next()|
|
||||||
|
|
||||||
*vim.lsp.diagnostic.on_publish_diagnostics()*
|
*vim.lsp.diagnostic.on_publish_diagnostics()*
|
||||||
on_publish_diagnostics({_}, {_}, {params}, {client_id}, {_}, {config})
|
on_publish_diagnostics({_}, {_}, {params}, {client_id}, {_}, {config})
|
||||||
|
|||||||
@@ -510,7 +510,7 @@ end
|
|||||||
|
|
||||||
--- Get the previous diagnostic closest to the cursor_position
|
--- Get the previous diagnostic closest to the cursor_position
|
||||||
---
|
---
|
||||||
---@param opts table See |vim.lsp.diagnostics.goto_next()|
|
---@param opts table See |vim.lsp.diagnostic.goto_next()|
|
||||||
---@return table Previous diagnostic
|
---@return table Previous diagnostic
|
||||||
function M.get_prev(opts)
|
function M.get_prev(opts)
|
||||||
opts = opts or {}
|
opts = opts or {}
|
||||||
@@ -523,7 +523,7 @@ function M.get_prev(opts)
|
|||||||
end
|
end
|
||||||
|
|
||||||
--- Return the pos, {row, col}, for the prev diagnostic in the current buffer.
|
--- Return the pos, {row, col}, for the prev diagnostic in the current buffer.
|
||||||
---@param opts table See |vim.lsp.diagnostics.goto_next()|
|
---@param opts table See |vim.lsp.diagnostic.goto_next()|
|
||||||
---@return table Previous diagnostic position
|
---@return table Previous diagnostic position
|
||||||
function M.get_prev_pos(opts)
|
function M.get_prev_pos(opts)
|
||||||
return _iter_diagnostic_lines_pos(
|
return _iter_diagnostic_lines_pos(
|
||||||
@@ -533,7 +533,7 @@ function M.get_prev_pos(opts)
|
|||||||
end
|
end
|
||||||
|
|
||||||
--- Move to the previous diagnostic
|
--- Move to the previous diagnostic
|
||||||
---@param opts table See |vim.lsp.diagnostics.goto_next()|
|
---@param opts table See |vim.lsp.diagnostic.goto_next()|
|
||||||
function M.goto_prev(opts)
|
function M.goto_prev(opts)
|
||||||
return _iter_diagnostic_move_pos(
|
return _iter_diagnostic_move_pos(
|
||||||
"DiagnosticPrevious",
|
"DiagnosticPrevious",
|
||||||
@@ -543,7 +543,7 @@ function M.goto_prev(opts)
|
|||||||
end
|
end
|
||||||
|
|
||||||
--- Get the previous diagnostic closest to the cursor_position
|
--- Get the previous diagnostic closest to the cursor_position
|
||||||
---@param opts table See |vim.lsp.diagnostics.goto_next()|
|
---@param opts table See |vim.lsp.diagnostic.goto_next()|
|
||||||
---@return table Next diagnostic
|
---@return table Next diagnostic
|
||||||
function M.get_next(opts)
|
function M.get_next(opts)
|
||||||
opts = opts or {}
|
opts = opts or {}
|
||||||
@@ -556,7 +556,7 @@ function M.get_next(opts)
|
|||||||
end
|
end
|
||||||
|
|
||||||
--- Return the pos, {row, col}, for the next diagnostic in the current buffer.
|
--- Return the pos, {row, col}, for the next diagnostic in the current buffer.
|
||||||
---@param opts table See |vim.lsp.diagnostics.goto_next()|
|
---@param opts table See |vim.lsp.diagnostic.goto_next()|
|
||||||
---@return table Next diagnostic position
|
---@return table Next diagnostic position
|
||||||
function M.get_next_pos(opts)
|
function M.get_next_pos(opts)
|
||||||
return _iter_diagnostic_lines_pos(
|
return _iter_diagnostic_lines_pos(
|
||||||
|
|||||||
@@ -1022,7 +1022,7 @@ do
|
|||||||
|
|
||||||
--@deprecated
|
--@deprecated
|
||||||
function M.buf_diagnostics_signs(bufnr, diagnostics, client_id)
|
function M.buf_diagnostics_signs(bufnr, diagnostics, client_id)
|
||||||
warn_once("buf_diagnostics_signs is deprecated. Use 'vim.lsp.diagnostics.set_signs'")
|
warn_once("buf_diagnostics_signs is deprecated. Use 'vim.lsp.diagnostic.set_signs'")
|
||||||
return vim.lsp.diagnostic.set_signs(diagnostics, bufnr, client_id)
|
return vim.lsp.diagnostic.set_signs(diagnostics, bufnr, client_id)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user