{"id":13678713,"url":"https://github.com/ojroques/nvim-bufdel","last_synced_at":"2025-08-09T23:08:41.175Z","repository":{"id":48392771,"uuid":"333966107","full_name":"ojroques/nvim-bufdel","owner":"ojroques","description":"A Neovim plugin to improve buffer deletion","archived":false,"fork":false,"pushed_at":"2023-12-27T09:44:03.000Z","size":255,"stargazers_count":174,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-02T14:59:23.253Z","etag":null,"topics":["nvim-lua","nvim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ojroques.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-01-28T21:53:31.000Z","updated_at":"2025-08-01T05:00:45.000Z","dependencies_parsed_at":"2023-12-27T10:44:18.646Z","dependency_job_id":null,"html_url":"https://github.com/ojroques/nvim-bufdel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ojroques/nvim-bufdel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojroques%2Fnvim-bufdel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojroques%2Fnvim-bufdel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojroques%2Fnvim-bufdel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojroques%2Fnvim-bufdel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ojroques","download_url":"https://codeload.github.com/ojroques/nvim-bufdel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojroques%2Fnvim-bufdel/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269649848,"owners_count":24453541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nvim-lua","nvim-plugin"],"created_at":"2024-08-02T13:00:57.402Z","updated_at":"2025-08-09T23:08:41.143Z","avatar_url":"https://github.com/ojroques.png","language":"Lua","readme":"# nvim-bufdel\n\nA small Neovim plugin to improve the deletion of buffers.\n\nImprovements:\n* **Preserve the layout of windows.** Deleting a buffer will no longer close any\n  window unexpectedly (see demo).\n* **Cycle through buffers according to their number**\n  ([configurable](#configuration)). This is especially helpful when using a\n  bufferline: we get the same behavior as closing tabs in Chrome / Firefox (see\n  demo).\n* **Terminal buffers are deleted without prompt.**\n* **Exit Neovim when last buffer is deleted** ([configurable](#configuration)).\n* **Add commands to close all listed buffers and to close them all except the\n  current one.**\n\n![demo](https://user-images.githubusercontent.com/23409060/188604956-51b33576-df09-41f2-aead-9d3685686d3f.gif)\n\nHere the same buffer is displayed in left and top-right window. Deleting that\nbuffer preserves the window layout and the first buffer with a number greater\nthan the deleted one is selected instead (the one immediately to the right in\nthe bufferline).\n\n## Installation\nWith [packer.nvim](https://github.com/wbthomason/packer.nvim):\n```lua\nuse {'ojroques/nvim-bufdel'}\n```\n\nWith [paq-nvim](https://github.com/savq/paq-nvim):\n```lua\npaq {'ojroques/nvim-bufdel'}\n```\n\n## Usage\nDelete the current buffer:\n```vim\n:BufDel\n```\n\nDelete the current buffer and ignore changes:\n```vim\n:BufDel!\n```\n\nDelete a buffer by its name or number (use quotes in case the buffer name is a\nnumber):\n```vim\n:BufDel \u003cbufexpr\u003e\n```\n\nDelete all listed buffers (add `!` to ignore changes):\n```vim\n:BufDelAll\n```\n\nDelete all listed buffers except the current one (add `!` to ignore changes):\n```vim\n:BufDelOthers\n```\n\n## Configuration\nYou can pass options to the `setup()` function. Here are the default options:\n```lua\nrequire('bufdel').setup {\n  next = 'tabs',\n  quit = true,  -- quit Neovim when last buffer is closed\n}\n```\n\nThe `next` option determines the next buffer to display after deletion.\nSupported values:\n* `cycle`: cycle through buffers according to their number.\n* `tabs` (*default*): like `cycle` but when the buffer with highest number is\n  deleted, display the new highest buffer instead of going back to the first\n  one.\n* `alternate`: switch to the alternate buffer (same behavior as without the\n  plugin).\n* You can also pass your own function to select the next buffer.\n","funding_links":[],"categories":["Lua"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fojroques%2Fnvim-bufdel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fojroques%2Fnvim-bufdel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fojroques%2Fnvim-bufdel/lists"}