nvim_runtime_lua

vim.diagnostic.setloclist.Opts

Configuration table with the following keys:

@inlinedoc

Fields6

Opts.namespace : integer[] | integer | nil

Only add diagnostics from the given namespace(s).

Opts.winnr : nil | integer

Window number to set location list for. (default: 0)

Opts.open : nil | boolean

Open the location list after setting. (default: true)

Opts.title : nil | string

Title of the location list. Defaults to "Diagnostics".

Opts.severity : vim.diagnostic.SeverityFilter | nil

See |diagnostic-severity|.

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