Skip to content

ChuufMaster/buffer-vacuum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧹 buffer-vacuum

A neovim plugin to vacuum up unused file buffers

✨ Features

  • Delete your oldest unsaved/unpinned buffer
  • pin buffers to ignore them from the buffer count

⚡️ Requirements

  • Neovim >=0.10

TOC

📦 Installation

Install the plugin with your preferred package manager:

return {
  {
    'ChuufMaster/buffer-vacuum',
    opts = {}
  },
}

⚙️ Configuration

Buffer-Vacuum comes with the following defaults:

{
    -- The maximum number of buffers to keep (excluding modified buffer)
    max_buffers = 6,

    -- Change to True if you want pinned buffers to count to the
    -- maximum number buffers
    count_pinned_buffers = false,

    -- Enable notifications every time a buffer is pinned or deleted
    -- Default FALSE
    enable_messages = false,
}

🚀 Usage

BufferVacuum exposes 4 commands to the user:

  • BufferVacuumPinBuffer: pin the current buffer so that it doesn't get deleted
  • BufferVacuumToggle: Toggle buffer-vacuum
  • BufferVacuumEnable: Enable buffer-vacuum
  • BufferVacuumDisable: Disable buffer-vacuum

Plugins that work well with Buffer Vacuum

About

A neovim plugin to vacuum up unused file buffers

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages