diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2021-09-26 16:02:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-26 16:02:18 -0700 |
commit | 187e3a3b7e210e354a3377fc41ac1fc36876d762 (patch) | |
tree | 55d4f089c96295106476ad05e58a966603b42a46 /runtime/doc/diagnostic.txt | |
parent | cb51a1b615376b3bbd6096c1d70f65028e7f6fde (diff) | |
download | rneovim-187e3a3b7e210e354a3377fc41ac1fc36876d762.tar.gz rneovim-187e3a3b7e210e354a3377fc41ac1fc36876d762.tar.bz2 rneovim-187e3a3b7e210e354a3377fc41ac1fc36876d762.zip |
refactor(diagnostic): use sign priority for severity_sort #15785
Rather than relying on the order in which signs are placed to dictate
the order in which they are displayed, explicitly set the priority of
the sign according to the severity of the diagnostic and the value of
severity_sort. If severity_sort is false or unset then all signs use the
same priority.
Diffstat (limited to 'runtime/doc/diagnostic.txt')
-rw-r--r-- | runtime/doc/diagnostic.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt index 68e4353d5b..679bb2f7ff 100644 --- a/runtime/doc/diagnostic.txt +++ b/runtime/doc/diagnostic.txt @@ -187,6 +187,11 @@ can be customized using the following: > sign define DiagnosticSignInfo text=I texthl=DiagnosticSignInfo linehl= numhl= sign define DiagnosticSignHint text=H texthl=DiagnosticSignHint linehl= numhl= +When the "severity_sort" option is set (see |vim.diagnostic.config()|) the +priority of each sign depends on the severity of the associated diagnostic. +Otherwise, all signs have the same priority (the value of the "priority" +option in the "signs" table of |vim.diagnostic.config()| or 10 if unset). + ============================================================================== EVENTS *diagnostic-events* |