diff options
| author | Jeremy Fleischman <jeremyfleischman@gmail.com> | 2024-12-11 17:29:54 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-11 17:29:54 -0800 |
| commit | 21961967ffef6d49512b83a23b6c93bb8b80389a (patch) | |
| tree | 0a3178d768c1085fc46294aca167110b56bf16e3 /runtime/doc | |
| parent | 442d338cb50e4cf08c58cb82b6d33b6d5df9fb1b (diff) | |
| download | rneovim-21961967ffef6d49512b83a23b6c93bb8b80389a.tar.gz rneovim-21961967ffef6d49512b83a23b6c93bb8b80389a.tar.bz2 rneovim-21961967ffef6d49512b83a23b6c93bb8b80389a.zip | |
feat(diagnostic): update quickfix list by title #31486
Previously, there was a singleton diagnostics quickfix list. Now there's
effectively one per title (up to vim's internal limit on quickfix
lists).
Suggested by mfussenegger https://github.com/neovim/neovim/pull/30868#pullrequestreview-2385761374.
Diffstat (limited to 'runtime/doc')
| -rw-r--r-- | runtime/doc/diagnostic.txt | 3 | ||||
| -rw-r--r-- | runtime/doc/news.txt | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt index eaa3681caa..3437717467 100644 --- a/runtime/doc/diagnostic.txt +++ b/runtime/doc/diagnostic.txt @@ -874,7 +874,8 @@ setqflist({opts}) *vim.diagnostic.setqflist()* • {open}? (`boolean`, default: `true`) Open quickfix list after setting. • {title}? (`string`) Title of quickfix list. Defaults to - "Diagnostics". + "Diagnostics". If there's already a quickfix list with this + title, it's updated. If not, a new quickfix list is created. • {severity}? (`vim.diagnostic.SeverityFilter`) See |diagnostic-severity|. diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 07b1b8646a..e7d4b92f7e 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -315,8 +315,8 @@ UI |hl-PmenuSel| and |hl-PmenuMatch| both inherit from |hl-Pmenu|, and |hl-PmenuMatchSel| inherits highlights from both |hl-PmenuSel| and |hl-PmenuMatch|. -• |vim.diagnostic.setqflist()| updates existing diagnostics quickfix list if one - exists. +• |vim.diagnostic.setqflist()| updates an existing quickfix list with the + given title if found • |ui-messages| content chunks now also contain the highlight group ID. |