A Neovim plugin to delete multiple buffers based on conditions like hidden, nameless, or matching patterns.
close-buffers.nvim is a Neovim plugin written in Lua that provides efficient buffer management by allowing users to delete multiple buffers at once based on customizable conditions. It solves the problem of buffer clutter in Neovim by enabling targeted deletions of buffers by type, pattern, or buffer number while preserving window layouts.
Neovim users who frequently work with multiple buffers and seek a more streamlined workflow for managing buffer cleanup without disrupting their window arrangements.
Developers choose this plugin for its extended features over the original Vim version, including pattern matching, flexible configuration to ignore filetypes, and seamless integration with bufferline plugins, all while maintaining minimal disruption to the editing workflow.
:bookmark_tabs: Delete multiple vim buffers based on different conditions
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Allows targeted deletion by buffer type such as hidden or nameless, enabling efficient cleanup without affecting visible windows, as detailed in the usage examples.
Supports regex and glob patterns for file-specific deletions, e.g., removing all .md files with a single command, enhancing workflow streamlining.
Preserves window arrangements when deleting the current buffer via preserve_window_layout, preventing disruptive rearrangements as emphasized in the features.
Configurable with bufferline plugins via next_buffer_cmd, allowing seamless workflow with tools like nvim-bufferline.lua, demonstrated in the setup example.
Requires Neovim 0.5+ and familiarity with Lua for setup and key mapping, which may deter users comfortable only with Vimscript or minimal configuration.
Lacks automatic triggers or event-driven cleanup; all deletions require explicit user commands, which can be tedious for frequent buffer management.
Force deletion option can lead to data loss if misused, with no built-in confirmation prompts or undo mechanisms beyond Neovim's native recovery.