mirror of
https://github.com/neovim/neovim.git
synced 2025-12-12 17:42:37 +00:00
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:
@@ -253,6 +253,12 @@ config({opts}, {namespace}) *vim.diagnostic.config()*
|
|||||||
• severity: Only show signs for diagnostics
|
• severity: Only show signs for diagnostics
|
||||||
matching the given severity
|
matching the given severity
|
||||||
|diagnostic-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
|
• update_in_insert: (default false) Update
|
||||||
diagnostics in Insert mode (if false,
|
diagnostics in Insert mode (if false,
|
||||||
|
|||||||
@@ -556,6 +556,9 @@ end
|
|||||||
--- - signs: (default true) Use signs for diagnostics. Options:
|
--- - signs: (default true) Use signs for diagnostics. Options:
|
||||||
--- * severity: Only show signs for diagnostics matching the given severity
|
--- * severity: Only show signs for diagnostics matching the given severity
|
||||||
--- |diagnostic-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,
|
--- - update_in_insert: (default false) Update diagnostics in Insert mode (if false,
|
||||||
--- diagnostics are updated on InsertLeave)
|
--- diagnostics are updated on InsertLeave)
|
||||||
--- - severity_sort: (default false) Sort diagnostics by severity. This affects the order in
|
--- - severity_sort: (default false) Sort diagnostics by severity. This affects the order in
|
||||||
|
|||||||
Reference in New Issue
Block a user