mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
docs(diagnostic): add return value of vim.diagnostic.config()
(#26615)
This commit is contained in:
parent
75b8f4c8cb
commit
e164f4c271
@ -466,6 +466,9 @@ config({opts}, {namespace}) *vim.diagnostic.config()*
|
|||||||
• {namespace} (integer|nil) Update the options for the given namespace.
|
• {namespace} (integer|nil) Update the options for the given namespace.
|
||||||
When omitted, update the global diagnostic options.
|
When omitted, update the global diagnostic options.
|
||||||
|
|
||||||
|
Return: ~
|
||||||
|
(table|nil) table of current diagnostic config if `opts` is omitted.
|
||||||
|
|
||||||
disable({bufnr}, {namespace}) *vim.diagnostic.disable()*
|
disable({bufnr}, {namespace}) *vim.diagnostic.disable()*
|
||||||
Disable diagnostics in the given buffer.
|
Disable diagnostics in the given buffer.
|
||||||
|
|
||||||
|
@ -617,6 +617,8 @@ end
|
|||||||
---
|
---
|
||||||
---@param namespace integer|nil Update the options for the given namespace. When omitted, update the
|
---@param namespace integer|nil Update the options for the given namespace. When omitted, update the
|
||||||
--- global diagnostic options.
|
--- global diagnostic options.
|
||||||
|
---
|
||||||
|
---@return table|nil table of current diagnostic config if `opts` is omitted.
|
||||||
function M.config(opts, namespace)
|
function M.config(opts, namespace)
|
||||||
vim.validate({
|
vim.validate({
|
||||||
opts = { opts, 't', true },
|
opts = { opts, 't', true },
|
||||||
|
Loading…
Reference in New Issue
Block a user