aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
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/doc
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/doc')
-rw-r--r--runtime/doc/diagnostic.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt
index 4cf8fef7c4..94ed578823 100644
--- a/runtime/doc/diagnostic.txt
+++ b/runtime/doc/diagnostic.txt
@@ -466,6 +466,9 @@ config({opts}, {namespace}) *vim.diagnostic.config()*
• {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.
+
disable({bufnr}, {namespace}) *vim.diagnostic.disable()*
Disable diagnostics in the given buffer.