vim.diagnostic._config
Methods3
function _config.enable_handler(name: "signs" | "underline" | "virtual_text" | "virtual_lines" | "float") -> nil
function _config.get_resolved_options(opts: vim.diagnostic.Opts | nil, namespace: nil | integer, bufnr: integer) -> vim.diagnostic.OptsResolved
function _config.config(opts: vim.diagnostic.Opts | nil, namespace: nil | integer) -> vim.diagnostic.Opts | nil
Parameters
optsvim.diagnostic.Opts | nilWhen omitted or
nil, retrieve the current configuration. Otherwise, a configuration table (see |vim.diagnostic.Opts|).namespacenil | integerUpdate the options for the given namespace. When omitted, update the global diagnostic options.
Returns
- vim.diagnostic.Opts | nil
: Current diagnostic config if {opts} is omitted.