commit 39112c72dd3722cd4a0770fc23c9d7269a9c2283
parent 29d5ff6ac4eade7996d14eec60a31ec6328a165d
Author: Gregory Anders <greg@gpanders.com>
Date: Wed, 13 Dec 2023 09:43:27 -0600
docs(diagnostic): fix typo in example
Diffstat:
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt
@@ -441,9 +441,9 @@ config({opts}, {namespace}) *vim.diagnostic.config()*
warnings, information, and hints, respectively.
Example: >lua
- vim.diagnostic.config({
- sign = { text = { [vim.diagnostic.severity.ERROR] = 'E', ... } }
- })
+ vim.diagnostic.config({
+ signs = { text = { [vim.diagnostic.severity.ERROR] = 'E', ... } }
+ })
<
• float: Options for floating windows. See
diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua
@@ -598,9 +598,9 @@ end
--- to display in the sign column. The default is to use "E", "W", "I", and "H"
--- for errors, warnings, information, and hints, respectively. Example:
--- <pre>lua
---- vim.diagnostic.config({
---- sign = { text = { [vim.diagnostic.severity.ERROR] = 'E', ... } }
---- })
+--- vim.diagnostic.config({
+--- signs = { text = { [vim.diagnostic.severity.ERROR] = 'E', ... } }
+--- })
--- </pre>
--- - float: Options for floating windows. See |vim.diagnostic.open_float()|.
--- - update_in_insert: (default false) Update diagnostics in Insert mode (if false,