{"id":27944582,"url":"https://github.com/hernancerm/bufpin.nvim","last_synced_at":"2026-05-07T01:31:29.462Z","repository":{"id":288535777,"uuid":"966977240","full_name":"hernancerm/bufpin.nvim","owner":"hernancerm","description":"Manually track a list of bufs and visualize it in the tabline","archived":false,"fork":false,"pushed_at":"2026-05-02T18:27:00.000Z","size":539,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-02T20:24:23.324Z","etag":null,"topics":["lua","neovim","neovim-plugin","nvim","nvim-plugin","plugin","tabline"],"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/hernancerm.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-15T18:29:12.000Z","updated_at":"2026-05-02T18:27:04.000Z","dependencies_parsed_at":"2025-04-18T17:42:19.620Z","dependency_job_id":"0ceea42c-fe81-40d3-88b9-a19e56482aea","html_url":"https://github.com/hernancerm/bufpin.nvim","commit_stats":null,"previous_names":["hernancerm/pin.nvim","hernancerm/bufpin.nvim"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/hernancerm/bufpin.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hernancerm%2Fbufpin.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hernancerm%2Fbufpin.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hernancerm%2Fbufpin.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hernancerm%2Fbufpin.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hernancerm","download_url":"https://codeload.github.com/hernancerm/bufpin.nvim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hernancerm%2Fbufpin.nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32719413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T00:29:05.620Z","status":"ssl_error","status_checked_at":"2026-05-07T00:28:57.074Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["lua","neovim","neovim-plugin","nvim","nvim-plugin","plugin","tabline"],"created_at":"2025-05-07T12:53:03.118Z","updated_at":"2026-05-07T01:31:29.456Z","avatar_url":"https://github.com/hernancerm.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bufpin\n\nManually track a list of bufs and visualize it in the tabline.\n\n\u003cdiv align=center\u003e\n  \u003cimg src=\"media/demo.gif\" alt=\"bufpin.nvim demo\" /\u003e\n\u003c/div\u003e\n\u003c!--\nnvim \\\n  README.md \\\n  Makefile \\\n  scripts/minidoc.lua \\\n  scripts/testdocs_init.lua \\\n  lua/bufpin/hsluv.lua \\\n  lua/bufpin/init.lua\n:SatelliteDisable\n:%bd|e#|lua Bufpin.pin(vim.fn.bufnr())\nRecording width/height: 215x14 (https://getkap.co/)\nOn .editorconfig `max_line_length`s to: 0\n--\u003e\n\n## Features\n\n- Display the pinned bufs in the tabline.\n- Out of the box key mappings to manage pinned bufs.\n- Sensible default colors for Bufpin's highlight groups.\n- Mouse support to left-click to edit buf and middle-click to remove buf.\n- Store the pinned bufs in session (`:mksession`) if `vim.opt.ssop:append(\"globals\")`.\n- Auto-hide the tabline when there are no pinned bufs.\n- Expose an API to track the pinned bufs.\n- Show file type icons.\n\nSuggested complementary plugins:\n\n- [mini.icons](https://github.com/echasnovski/mini.icons):\n  Display file type icon next to buf name. Use a [Nerd Font](https://www.nerdfonts.com/).\n- [mini.bufremove](https://github.com/echasnovski/mini.bufremove):\n  Preserve window layout when removing bufs.\n- [vim-lastplace](https://github.com/farmergreg/vim-lastplace):\n  Remember the cursor location in visited bufs.\n\n## Out of scope\n\n- Be a fully-fledged tabline plugin like\n  [bufferline.nvim](https://github.com/akinsho/bufferline.nvim).\n\n## Requirements\n\n- Neovim \u003e= 0.11.0\n\n## Installation\n\nUse your favorite package manager. For example, [Lazy.nvim](https://github.com/folke/lazy.nvim):\n\n```lua\n{\n  \"hernancerm/bufpin.nvim\",\n  opts = {}\n},\n```\n\nThe function `require(\"bufpin\").setup()` needs to be called. Lazy.nvim does this using the snippet\nabove.\n\n## Default config\n\n```lua\nlocal bufpin = require(\"bufpin\")\nbufpin.setup()\n```\n\nIs equivalent to:\n\n```lua\nlocal bufpin = require(\"bufpin\")\nbufpin.setup({\n  auto_hide_tabline = true,\n  set_default_keymaps = true,\n  exclude = function(_) end,\n  exclude_runr_bufs = true,\n  use_mini_bufremove = true,\n  icons_style = \"monochrome_selected\",\n  ghost_buf_enabled = true,\n  remove_with = \"delete\",\n  logging = {\n    enabled = false,\n    level = vim.log.levels.INFO,\n  },\n})\n```\n\nDefault key mappings:\n\n```lua\nlocal kset = vim.keymap.set\nlocal opts = { silent = true }\nkset(\"n\",  \"\u003cLeader\u003ep\",  \":cal v:lua.Bufpin.toggle()\u003cCR\u003e\",          opts)\nkset(\"n\",  \"\u003cLeader\u003ew\",  \":cal v:lua.Bufpin.remove()\u003cCR\u003e\",          opts)\nkset(\"n\",  \"\u003cUp\u003e\",       \":cal v:lua.Bufpin.edit_left()\u003cCR\u003e\",       opts)\nkset(\"n\",  \"\u003cDown\u003e\",     \":cal v:lua.Bufpin.edit_right()\u003cCR\u003e\",      opts)\nkset(\"n\",  \"\u003cLeft\u003e\",     \":cal v:lua.Bufpin.move_to_left()\u003cCR\u003e\",    opts)\nkset(\"n\",  \"\u003cRight\u003e\",    \":cal v:lua.Bufpin.move_to_right()\u003cCR\u003e\",   opts)\nkset(\"n\",  \"\u003cF1\u003e\",       \":cal v:lua.Bufpin.edit_by_index(1)\u003cCR\u003e\",  opts)\nkset(\"n\",  \"\u003cF2\u003e\",       \":cal v:lua.Bufpin.edit_by_index(2)\u003cCR\u003e\",  opts)\nkset(\"n\",  \"\u003cF3\u003e\",       \":cal v:lua.Bufpin.edit_by_index(3)\u003cCR\u003e\",  opts)\nkset(\"n\",  \"\u003cF4\u003e\",       \":cal v:lua.Bufpin.edit_by_index(4)\u003cCR\u003e\",  opts)\n```\n\n## Documentation\n\nPlease refer to the help file: [bufpin.txt](./doc/bufpin.txt).\n\n## JetBrains IDEs\n\nTo get a similar experience in JetBrains IDEs follow these instructions:\n\n- IDE: In Settings set the tab limit to 1: \"Editor \u003e Editor Tabs \u003e Tab limit: 1\".\n- [IdeaVim](https://github.com/JetBrains/ideavim): In `~/.ideavimrc` add this to match the default\n  key maps of this plugin:\n\n```vim\nnmap      \u003cSpace\u003ep  \u003cAction\u003e(PinActiveEditorTab)\nnmap      \u003cSpace\u003ew  \u003cAction\u003e(CloseContent)\nnmap      \u003cUp\u003e      \u003cAction\u003e(PreviousTab)\nnmap      \u003cDown\u003e    \u003cAction\u003e(NextTab)\nnnoremap  \u003cLeft\u003e    :tabmove -1\u003cCR\u003e\nnnoremap  \u003cRight\u003e   :tabmove +1\u003cCR\u003e\nnmap      \u003cF1\u003e      \u003cAction\u003e(GoToTab1)\nnmap      \u003cF2\u003e      \u003cAction\u003e(GoToTab2)\nnmap      \u003cF3\u003e      \u003cAction\u003e(GoToTab3)\nnmap      \u003cF4\u003e      \u003cAction\u003e(GoToTab4)\n```\n\n## Inspiration\n\n- [Harpoon](https://github.com/ThePrimeagen/harpoon)\n- [IntelliJ IDEA](https://www.jetbrains.com/idea/)\n- [IdeaVim](https://github.com/JetBrains/ideavim)\n\n## Contributing\n\nI welcome issues requesting any behavior change. However, please do not submit a PR unless it's for\na trivial fix.\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhernancerm%2Fbufpin.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhernancerm%2Fbufpin.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhernancerm%2Fbufpin.nvim/lists"}