docs(diagnostics): add "priority" option to signs table (#15860)

This feature was added in #15785, but the docs for
vim.diagnostic.config() weren't updated.
This commit is contained in:
Gregory Anders
2021-10-01 19:07:55 -06:00
committed by GitHub
parent dc4670038e
commit 36408146ad
2 changed files with 9 additions and 0 deletions

View File

@@ -253,6 +253,12 @@ config({opts}, {namespace}) *vim.diagnostic.config()*
• severity: Only show signs for diagnostics
matching the given severity
|diagnostic-severity|
• priority: (number, default 10) Base
priority to use for signs. When
{severity_sort} is used, the priority of
a sign is adjusted based on its severity.
Otherwise, all signs use the same
priority.
• update_in_insert: (default false) Update
diagnostics in Insert mode (if false,

View File

@@ -556,6 +556,9 @@ end
--- - signs: (default true) Use signs for diagnostics. Options:
--- * severity: Only show signs for diagnostics matching the given severity
--- |diagnostic-severity|
--- * priority: (number, default 10) Base priority to use for signs. When
--- {severity_sort} is used, the priority of a sign is adjusted based on
--- its severity. Otherwise, all signs use the same priority.
--- - update_in_insert: (default false) Update diagnostics in Insert mode (if false,
--- diagnostics are updated on InsertLeave)
--- - severity_sort: (default false) Sort diagnostics by severity. This affects the order in