docs(diagnostic): fix typo in example

This commit is contained in:
Gregory Anders
2023-12-13 09:43:27 -06:00
parent 29d5ff6ac4
commit 39112c72dd
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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,