aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/diagnostic.txt8
-rw-r--r--runtime/doc/news.txt2
2 files changed, 6 insertions, 4 deletions
diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt
index 342947595e..9ccc3102b6 100644
--- a/runtime/doc/diagnostic.txt
+++ b/runtime/doc/diagnostic.txt
@@ -445,10 +445,10 @@ Lua module: vim.diagnostic *diagnostic-api*
updated on |InsertLeave|)
• {severity_sort}? (`boolean|{reverse?:boolean}`, default: `false`)
Sort diagnostics by severity. This affects the
- order in which signs and virtual text are
- displayed. When true, higher severities are
- displayed before lower severities (e.g. ERROR is
- displayed before WARN). Options:
+ order in which signs, virtual text, and
+ highlights are displayed. When true, higher
+ severities are displayed before lower severities
+ (e.g. ERROR is displayed before WARN). Options:
• {reverse}? (boolean) Reverse sort order
• {jump}? (`vim.diagnostic.Opts.Jump`) Default values for
|vim.diagnostic.jump()|. See
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index 6211f9b4e4..a4d82eba39 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -55,6 +55,8 @@ DIAGNOSTICS
• |vim.diagnostic.config()| accepts a "jump" table to specify defaults for
|vim.diagnostic.jump()|.
+• The "underline" diagnostics handler sorts diagnostics by severity when using
+ the "severity_sort" option.
EDITOR