nvim_runtime_lua

vim.diagnostic.setqflist.Opts

Configuration table with the following keys:

@inlinedoc

Fields5

Opts.namespace : integer[] | integer | nil

Only add diagnostics from the given namespace(s).

Opts.open : nil | boolean

Open quickfix list after setting. (default: true)

Opts.title : nil | string

Title of quickfix list. Defaults to "Diagnostics". If there's already a quickfix list with this title, it's updated. If not, a new quickfix list is created.

Opts.severity : vim.diagnostic.SeverityFilter | nil

See |diagnostic-severity|.

Opts.format : fun(diagnostic: vim.Diagnostic) -> nil | string | nil