bufdelete

URL: https://github.com/famiu/bufdelete.nvim/

Maintainers: Matt Sturgeon


This plugin provides two commands, :Bdelete and :Bwipeout. They work exactly the same as :bdelete and :bwipeout, except they keep your window layout intact.

There's also two Lua functions provided, bufdelete and bufwipeout, which do the same thing as their command counterparts. Both take three arguments, buffers, force and switchable_buffers.

Here's an example of how to use the functions:

  -- Forcibly delete current buffer
  require('bufdelete').bufdelete(0, true)

  -- Wipeout buffer number 100 without force
  require('bufdelete').bufwipeout(100)

  -- Delete buffer 7 and 30 without force.
  require('bufdelete').bufdelete({7, 30})

  -- Delete buffer matching foo.txt with force
  require('bufdelete').bufdelete("foo.txt", true)

  -- Delete buffer matching foo.txt, buffer matching bar.txt and buffer 3 with force
  require('bufdelete').bufdelete({"foo.txt", "bar.txt", 3}, true)

  -- Delete current buffer and switch to one of buffer 3, 5 or 10
  require('bufdelete').bufdelete(0, false, { 3, 5, 10 })

See the plugin's README for more details.

plugins.bufdelete.enable

Whether to enable bufdelete.nvim.

Type: boolean

Default: false

Example: true

Declared by:

plugins.bufdelete.package

The bufdelete.nvim package to use.

Type: package

Default: pkgs.vimPlugins.bufdelete-nvim

Declared by: