aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/diagnostic.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt
index 1e16edbdb2..4cf8fef7c4 100644
--- a/runtime/doc/diagnostic.txt
+++ b/runtime/doc/diagnostic.txt
@@ -441,10 +441,16 @@ 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', ... } }
+ })
<
+ • numhl: (table) A table mapping |diagnostic-severity|
+ to the highlight group used for the line number where
+ the sign is placed.
+ • linehl: (table) A table mapping |diagnostic-severity|
+ to the highlight group used for the whole line the
+ sign is placed in.
• float: Options for floating windows. See
|vim.diagnostic.open_float()|.