aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/diagnostic.lua
diff options
context:
space:
mode:
authorYi Ming <ofseed@foxmail.com>2023-12-18 08:11:47 +0800
committerGitHub <noreply@github.com>2023-12-17 18:11:47 -0600
commite164f4c2715c97b48607bb6339eac3aff7106c47 (patch)
tree4cf4043993b90d861f4e2bf23c93e1dc9ee0ca47 /runtime/lua/vim/diagnostic.lua
parent75b8f4c8cbe595ff868c1a0c59edbdf9658e46b0 (diff)
downloadrneovim-e164f4c2715c97b48607bb6339eac3aff7106c47.tar.gz
rneovim-e164f4c2715c97b48607bb6339eac3aff7106c47.tar.bz2
rneovim-e164f4c2715c97b48607bb6339eac3aff7106c47.zip
docs(diagnostic): add return value of `vim.diagnostic.config()` (#26615)
Diffstat (limited to 'runtime/lua/vim/diagnostic.lua')
-rw-r--r--runtime/lua/vim/diagnostic.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua
index 2171ae14e6..e4f694b8a2 100644
--- a/runtime/lua/vim/diagnostic.lua
+++ b/runtime/lua/vim/diagnostic.lua
@@ -617,6 +617,8 @@ end
---
---@param namespace integer|nil Update the options for the given namespace. When omitted, update the
--- global diagnostic options.
+---
+---@return table|nil table of current diagnostic config if `opts` is omitted.
function M.config(opts, namespace)
vim.validate({
opts = { opts, 't', true },