aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorDonatas <contactdonatas@gmail.com>2024-10-27 18:36:39 +0200
committerGitHub <noreply@github.com>2024-10-27 11:36:39 -0500
commita9e725b26e08f494a9300d8f63acd3efa9c2da82 (patch)
tree7bf42fdc4aa47f20865db5ec66242ca104340300 /runtime/doc
parentadf7c98d607b362dd3b25d6d0bee0d1212c472dd (diff)
downloadrneovim-a9e725b26e08f494a9300d8f63acd3efa9c2da82.tar.gz
rneovim-a9e725b26e08f494a9300d8f63acd3efa9c2da82.tar.bz2
rneovim-a9e725b26e08f494a9300d8f63acd3efa9c2da82.zip
feat(diagnostics)!: sort underline severity_sort (#30898)
feat(diagnostics)!: sort underline with severity_sort BREAKING CHANGE: underline will be applied with a higher value than `vim.hl.priorities.diagnostics`
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