mirror of
https://github.com/neovim/neovim.git
synced 2025-12-08 15:42:52 +00:00
docs(diagnostic): return value of get() #24144
This commit is contained in:
@@ -478,7 +478,7 @@ get({bufnr}, {opts}) *vim.diagnostic.get()*
|
|||||||
• severity: See |diagnostic-severity|.
|
• severity: See |diagnostic-severity|.
|
||||||
|
|
||||||
Return: ~
|
Return: ~
|
||||||
Diagnostic [] table A list of diagnostic items |diagnostic-structure|.
|
Diagnostic [] table A list of diagnostic items |diagnostic-structure|. Keys `bufnr` , `end_lnum` , `end_col` , and `severity` are guaranteed to be present.
|
||||||
|
|
||||||
get_namespace({namespace}) *vim.diagnostic.get_namespace()*
|
get_namespace({namespace}) *vim.diagnostic.get_namespace()*
|
||||||
Get namespace metadata.
|
Get namespace metadata.
|
||||||
|
|||||||
@@ -767,7 +767,7 @@ end
|
|||||||
--- - namespace: (number) Limit diagnostics to the given namespace.
|
--- - namespace: (number) Limit diagnostics to the given namespace.
|
||||||
--- - lnum: (number) Limit diagnostics to the given line number.
|
--- - lnum: (number) Limit diagnostics to the given line number.
|
||||||
--- - severity: See |diagnostic-severity|.
|
--- - severity: See |diagnostic-severity|.
|
||||||
---@return Diagnostic[] table A list of diagnostic items |diagnostic-structure|.
|
---@return Diagnostic[] table A list of diagnostic items |diagnostic-structure|. Keys `bufnr`, `end_lnum`, `end_col`, and `severity` are guaranteed to be present.
|
||||||
function M.get(bufnr, opts)
|
function M.get(bufnr, opts)
|
||||||
vim.validate({
|
vim.validate({
|
||||||
bufnr = { bufnr, 'n', true },
|
bufnr = { bufnr, 'n', true },
|
||||||
|
|||||||
Reference in New Issue
Block a user