{"id":13412432,"url":"https://github.com/chrisgrieser/nvim-early-retirement","last_synced_at":"2025-04-04T12:07:02.208Z","repository":{"id":149899030,"uuid":"621883705","full_name":"chrisgrieser/nvim-early-retirement","owner":"chrisgrieser","description":"Send buffers into early retirement by automatically closing them after x minutes of inactivity.","archived":false,"fork":false,"pushed_at":"2025-03-25T13:03:00.000Z","size":69,"stargazers_count":202,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T00:55:23.316Z","etag":null,"topics":["buffer-management","neovim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chrisgrieser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":"https://www.paypal.me/ChrisGrieser","ko_fi":"pseudometa"}},"created_at":"2023-03-31T15:38:37.000Z","updated_at":"2025-03-25T13:03:04.000Z","dependencies_parsed_at":"2024-04-12T04:44:39.012Z","dependency_job_id":"68b9fd50-562d-44eb-8846-7900e46c8e56","html_url":"https://github.com/chrisgrieser/nvim-early-retirement","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"chrisgrieser/nvim-pseudometa-plugin-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisgrieser%2Fnvim-early-retirement","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisgrieser%2Fnvim-early-retirement/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisgrieser%2Fnvim-early-retirement/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisgrieser%2Fnvim-early-retirement/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrisgrieser","download_url":"https://codeload.github.com/chrisgrieser/nvim-early-retirement/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247174407,"owners_count":20896076,"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","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":["buffer-management","neovim-plugin"],"created_at":"2024-07-30T20:01:24.592Z","updated_at":"2025-04-04T12:07:02.191Z","avatar_url":"https://github.com/chrisgrieser.png","language":"Lua","funding_links":["https://www.paypal.me/ChrisGrieser","https://ko-fi.com/pseudometa","https://ko-fi.com/Y8Y86SQ91'"],"categories":["Utility","Lua","Buffers"],"sub_categories":["Cursorline","Assembly"],"readme":"\u003c!-- LTeX: enabled=false --\u003e\n# nvim-early-retirement 👴👵\n\u003c!-- LTeX: enabled=true --\u003e\n\u003ca href=\"https://dotfyle.com/plugins/chrisgrieser/nvim-early-retirement\"\u003e\n\u003cimg alt=\"badge\" src=\"https://dotfyle.com/plugins/chrisgrieser/nvim-early-retirement/shield\"/\u003e\u003c/a\u003e\n\nSend buffers into early retirement by automatically closing them after x minutes\nof inactivity.\n\nMakes the bufferline or `:bnext` less crowded.\n\n\u003c!-- toc --\u003e\n\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Similar Plugins](#similar-plugins)\n- [Credits](#credits)\n\n\u003c!-- tocstop --\u003e\n\n## Installation\n\n```lua\n-- packer\nuse {\n\t\"chrisgrieser/nvim-early-retirement\",\n\tconfig = function () require(\"early-retirement\").setup() end,\n}\n\n-- lazy.nvim\n{\n\t\"chrisgrieser/nvim-early-retirement\",\n\tconfig = true,\n\tevent = \"VeryLazy\",\n},\n```\n\n## Configuration\n\n```lua\ndefaultOpts = {\n\t-- If a buffer has been inactive for this many minutes, close it.\n\tretirementAgeMins = 20,\n\n\t-- Filetypes to ignore.\n\tignoredFiletypes = {},\n\n\t-- Ignore files matching this lua pattern; empty string disables this setting.\n\tignoreFilenamePattern = \"\",\n\n\t-- Will not close the alternate file.\n\tignoreAltFile = true,\n\n\t-- Minimum number of open buffers for auto-closing to become active. E.g.,\n\t-- by setting this to 4, no auto-closing will take place when you have 3\n\t-- or fewer open buffers. Note that this plugin never closes the currently\n\t-- active buffer, so a number \u003c 2 will effectively disable this setting.\n\tminimumBufferNum = 1,\n\n\t-- Ignore buffers with unsaved changes. If false, the buffers will\n\t-- automatically be written and then closed.\n\tignoreUnsavedChangesBufs = true,\n\n\t-- Ignore non-empty buftypes, for example terminal buffers\n\tignoreSpecialBuftypes = true,\n\n\t-- Ignore visible buffers. Buffers that are open in a window or in a tab\n\t-- are considered visible by vim. (\"a\" in `:buffers`)\n\tignoreVisibleBufs = true,\n\n\t-- ignore unloaded buffers. Session-management plugin often add buffers\n\t-- to the buffer list without loading them.\n\tignoreUnloadedBufs = false,\n\n\t-- Show notification on closing. Works with plugins like nvim-notify.\n\tnotificationOnAutoClose = false,\n\n\t-- When a file is deleted, for example via an external program, delete the\n\t-- associated buffer as well. Requires Neovim \u003e= 0.10.\n\t-- (This feature is independent from the automatic closing)\n\tdeleteBufferWhenFileDeleted = false,\n\n\t-- Function to delete the buffer. The argument provided to the function is\n\t-- the buffer number. If nothing is provided the plugin will just call\n\t-- nvim_buf_delete.\n\tdeleteFunction = nil,\n}\n```\n\n\u003e [!NOTE]\n\u003e You can also have `nvim-early-retirement` ignore certain buffers by setting\n\u003e `vim.b.ignore_early_retirement = true`.\n\n## Similar Plugins\n- Close unedited files: [hbac](https://github.com/axkirillov/hbac.nvim)\n\n## Credits\n__Thanks__  \nTo `@nikfp` and `@xorg-dogma` on Discord for their help.\n\n\u003c!-- vale Google.FirstPerson = NO --\u003e\n__About Me__  \nIn my day job, I am a sociologist studying the social mechanisms underlying the\ndigital economy. For my PhD project, I investigate the governance of the app\neconomy and how software ecosystems manage the tension between innovation and\ncompatibility. If you are interested in this subject, feel free to get in touch.\n\n__Blog__  \nI also occasionally blog about vim: [Nano Tips for Vim](https://nanotipsforvim.prose.sh)\n\n__Profiles__  \n- [Discord](https://discordapp.com/users/462774483044794368/)\n- [Academic Website](https://chris-grieser.de/)\n- [GitHub](https://github.com/chrisgrieser/)\n- [Twitter](https://twitter.com/pseudo_meta)\n- [ResearchGate](https://www.researchgate.net/profile/Christopher-Grieser)\n- [LinkedIn](https://www.linkedin.com/in/christopher-grieser-ba693b17a/)\n\n\u003ca href='https://ko-fi.com/Y8Y86SQ91' target='_blank'\u003e\u003cimg\n\theight='36'\n\tstyle='border:0px;height:36px;'\n\tsrc='https://cdn.ko-fi.com/cdn/kofi1.png?v=3'\n\tborder='0'\n\talt='Buy Me a Coffee at ko-fi.com'\n/\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisgrieser%2Fnvim-early-retirement","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrisgrieser%2Fnvim-early-retirement","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisgrieser%2Fnvim-early-retirement/lists"}