plugins.fidget.notification.configs

How to configure notification groups when instantiated.

A configuration with the key "default" should always be specified, and is used as the fallback for notifications lacking a group key.

To see the default config, run: :lua print(vim.inspect(require("fidget.notification").default_config))

Plugin default:

{
  default = "require('fidget.notification').default_config";
}

Type: null or (attribute set of ((submodule) or string))

Default: null

Declared by:

plugins.fidget.notification.filter

Minimum notifications level.

Note that this filter only applies to notifications with an explicit numeric level (i.e., vim.log.levels).

Set to "off" to filter out all notifications with an numeric level, or "trace" to turn off filtering.

Type: null or unsigned integer, meaning >=0, or one of “off”, “error”, “warn”, “info”, “debug”, “trace”

Default: "info"

Declared by:

plugins.fidget.notification.historySize

Number of removed messages to retain in history.

Set to 0 to keep around history indefinitely (until cleared).

Plugin default: 128

Type: null or unsigned integer, meaning >=0, or raw lua code

Default: null

Declared by:

plugins.fidget.notification.overrideVimNotify

Automatically override vim.notify() with Fidget.

Equivalent to the following:

  fidget.setup({ --[[ options ]] })
  vim.notify = fidget.notify

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.fidget.notification.pollRate

How frequently to update and render notifications.

Measured in Hertz (frames per second).

Plugin default: 10

Type: null or unsigned integer, meaning >=0, or raw lua code

Default: null

Declared by:

plugins.fidget.notification.redirect

Conditionally redirect notifications to another backend.

This option is useful for delegating notifications to another backend that supports features Fidget has not (yet) implemented.

For instance, Fidget uses a single, shared buffer and window for rendering all notifications, so it lacks a per-notification on_open callback that can be used to, e.g., set the |filetype| for a specific notification. For such notifications, Fidget’s default redirect delegates such notifications with an on_open callback to |nvim-notify| (if available).

Plugin default:

function(msg, level, opts)
  if opts and opts.on_open then
    return require("fidget.integration.nvim-notify").delegate(msg, level, opts)
  end
end

Type: null or lua function string or value false (singular enum)

Default: null

Declared by: