diff options
author | Gregory Anders <greg@gpanders.com> | 2021-09-17 14:59:30 -0600 |
---|---|---|
committer | Gregory Anders <greg@gpanders.com> | 2021-09-17 14:59:30 -0600 |
commit | 938ed458e2818b7840e9c4eaf298c5a7af8d79ea (patch) | |
tree | a2147f01deaceb10d3af8b322c263ad1222e478d /runtime/doc | |
parent | ede5695eb194e9b607421415525177888b447753 (diff) | |
download | rneovim-938ed458e2818b7840e9c4eaf298c5a7af8d79ea.tar.gz rneovim-938ed458e2818b7840e9c4eaf298c5a7af8d79ea.tar.bz2 rneovim-938ed458e2818b7840e9c4eaf298c5a7af8d79ea.zip |
fix(diagnostic): change default severity_sort order
When severity_sort is true, higher severities should be displayed before
lower severities (e.g. ERROR is displayed over WARN).
Also improved the test case for this.
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/diagnostic.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt index 9ed75e1356..199c04be98 100644 --- a/runtime/doc/diagnostic.txt +++ b/runtime/doc/diagnostic.txt @@ -239,7 +239,9 @@ config({opts}, {namespace}) *vim.diagnostic.config()* • severity_sort: (default false) Sort diagnostics by severity. This affects the order in which signs and virtual text are - displayed. Options: + displayed. When true, higher severities are + displayed before lower severities (e.g. + ERROR is displayed before WARN). Options: • reverse: (boolean) Reverse sort order {namespace} number|nil Update the options for the given namespace. When omitted, update the global |