plugins.bufdelete.settings

The configuration options for bufdelete without the bufdelete_ prefix.

For example, the following settings are equivialent to these :setglobal commands:

  • foo_bar = 1 -> :setglobal bufdelete_foo_bar=1
  • hello = "world" -> :setglobal bufdelete_hello="world"
  • some_toggle = true -> :setglobal bufdelete_some_toggle
  • other_toggle = false -> :setglobal nobufdelete_other_toggle

Type: attribute set of anything

Default: { }

Example:

{
  buf_filter = ''
    function()
      -- TODO: return a list of buffers
      return { }
    end
  '';
}

Declared by:

plugins.bufdelete.settings.buf_filter

Function that determines buffers that bufdelete.nvim can switch to, instead of the default behavior of switching to any buffer.

Must be a function that takes no argument and returns a list of buffers.

Type: null or lua function string

Default: null

Plugin default: null

Declared by: