{"id":51099803,"url":"https://github.com/zachyarbrough/anchor.nvim","last_synced_at":"2026-06-26T07:01:13.537Z","repository":{"id":365814549,"uuid":"1273799105","full_name":"zachyarbrough/anchor.nvim","owner":"zachyarbrough","description":"Anchor directories to your project for quick access. Inspired by Harpoon.","archived":false,"fork":false,"pushed_at":"2026-06-19T02:59:36.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-19T03:16:20.255Z","etag":null,"topics":["lua","neovim","neovim-plugin","nvim","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zachyarbrough.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":"2026-06-18T22:12:10.000Z","updated_at":"2026-06-19T02:59:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zachyarbrough/anchor.nvim","commit_stats":null,"previous_names":["zachyarbrough/anchor.nvim"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/zachyarbrough/anchor.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachyarbrough%2Fanchor.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachyarbrough%2Fanchor.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachyarbrough%2Fanchor.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachyarbrough%2Fanchor.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zachyarbrough","download_url":"https://codeload.github.com/zachyarbrough/anchor.nvim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachyarbrough%2Fanchor.nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34806448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"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":["lua","neovim","neovim-plugin","nvim","nvim-plugin"],"created_at":"2026-06-24T10:00:24.360Z","updated_at":"2026-06-26T07:01:13.531Z","avatar_url":"https://github.com/zachyarbrough.png","language":"Lua","funding_links":[],"categories":["Project"],"sub_categories":["Markdown and LaTeX"],"readme":"\n\u003cdiv align=\"center\"\u003e\n  \n\u003ch1\u003e:anchor: anchor.nvim :anchor:\u003c/h1\u003e\n\n[![Lua](https://img.shields.io/badge/Lua-blue.svg?style=for-the-badge\u0026logo=lua)](http://www.lua.org)\n[![Neovim](https://img.shields.io/badge/Neovim%200.9+-green.svg?style=for-the-badge\u0026logo=neovim)](https://neovim.io)\n\n[Installation](#installation) •  [Usage](#usage) • [Configuration](#configuration) • [Commands](#commands)\n\n\u003cimg width=\"1300\" height=\"1000\" alt=\"anchor-demo\" src=\"https://github.com/user-attachments/assets/6a5fb249-85b4-45df-8c9f-2a5610cfe4c5\" /\u003e\n\n\u003c/div\u003e\n\n\\\nPin project-specific directories and navigate them with your fuzzy finder. Perfect for jumping between notes, related repos, or git worktrees without losing context.\n\n## Installation\n\u003e [!TIP]\n\u003e Run `:checkhealth anchor` after installation to ensure that the plugin has loaded correctly.\n\u003cdetails\u003e\n  \u003csummary\u003evim.pack (Neovim 0.12+)\u003c/summary\u003e\n  \n  ```lua\n  vim.pack.add({ src = 'https://github.com/zachyarbrough/anchor.nvim' })\n  ```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003elazy.nvim\u003c/summary\u003e\n  \n  ```lua\n  require('lazy').setup({\n    {\n        'zachyarbrough/anchor.nvim',\n        opts = {},\n    }\n  })\n  ```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003epacker\u003c/summary\u003e\n  \n  ```lua\n  require('packer').startup(function()\n    use({\n      'zachyarbrough/anchor.nvim',\n      config = function()\n        require('anchor').setup()\n      end,\n    })\n  end)\n  ```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003epaq\u003c/summary\u003e\n  \n  ```lua\n  require('paq')({\n    { 'zachyarbrough/anchor.nvim' },\n  })\n  ```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003evim-plug\u003c/summary\u003e\n  \n  ```lua\n  Plug 'zachyarbrough/anchor.nvim'\n  ```\n\u003c/details\u003e\n\n## Usage\nThe following keymaps provide a good starting point. Feel free to customize them to fit your workflow.\n```lua\nlocal function anchor()\n    return require('anchor')\nend\n\nvim.keymap.set('n', '\u003cleader\u003eaa', function() anchor().add() end, { desc = 'Add a directory to the anchor list' })\nvim.keymap.set('n', '\u003cleader\u003ead', function() anchor().delete() end, { desc = 'Delete a directory from the anchor list' })\nvim.keymap.set('n', '\u003cleader\u003eal', function() anchor().toggle_list() end, { desc = 'Open anchor list in a floating buffer' })\nvim.keymap.set('n', '\u003cleader\u003ea0', function() anchor().return_to_cwd() end, { desc = 'Return back to cwd' })\n\nvim.keymap.set('n', '\u003cleader\u003ea1', function() anchor().open(1) end, { desc = 'Open fuzzy finder for anchor 1' })\n...\nvim.keymap.set('n', '\u003cleader\u003ea5', function() anchor().open(5) end, { desc = 'Open fuzzy finder for anchor 5' })\n```\n\nIf the selected picker supports grepping files, you can live grep the anchored directory with the below keymaps. (Currently supports `fzf-lua`, `telescope`, `mini.picks`, and `snacks.picker`)\n```lua\nvim.keymap.set('n', '\u003cleader\u003eag1', function() anchor().grep(1) end, { desc = 'Open fuzzy finder with live grep for anchor 1' })\n...\nvim.keymap.set('n', '\u003cleader\u003eag5', function() anchor().grep(5) end, { desc = 'Open fuzzy finder with live grep for anchor 5' })\n```\n\nIf you use git worktrees, Anchor includes a dedicated worktree picker so you can quickly search other worktrees.\n```lua\nvim.keymap.set('n', '\u003cleader\u003egw', function() anchor().toggle_worktrees() end, { desc = 'Open git worktrees in a floating buffer' })\n```\n\n## Configuration\n\u003e[!NOTE]\n\u003e `exclude_dirs` and `extended_excluded_dirs` only work for fuzzy finders, if `picker` is set to 'oil' or 'default' then these options will be ignored.\n```lua\nrequire('anchor').setup({\n    -- UI options for anchor list buffer\n    winopts = {\n    \twidth = 80,\n    \theight = 15,\n    \tborder = 'rounded',\n    \ttitle = 'Anchor',\n\t    numbers = 'absolute' -- 'absolute', 'relative', 'none'\n    },\n    -- UI options for fuzzy finder (currently only supported by fzf-lua and telescope)\n    picker_opts = {\n        grep = {}, -- UI Options for live grep\n        files = {} -- UI Options for file search\n    },\n    picker = 'auto',        -- 'fzf-lua', 'telescope', 'default' (netrw), 'oil', 'mini', 'snack' or 'auto'\n    relative_paths = true, -- Display relative paths in the anchor list\n\n    show_branches = true, -- Show branch names when viewing git worktrees\n\n    excluded_dirs = { '.git', '.cache' }, -- Directories to exclude in fuzzy finder search\n    extended_excluded_dirs = { },         -- User specific directories to exclude in fuzzy finder search\n})\n```\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `:Anchor add` | Add a directory to the anchor list. |\n| `:Anchor delete` | Remove a directory from the anchor list. |\n| `:Anchor list` | Open the anchor list in a floating buffer. |\n| `:Anchor open 0` | Return to the working cwd. |\n| `:Anchor open {1-9}` | Open the fuzzy finder to navigate anchored directories at slots 1–9. (e.g. :`Anchor open 3`) |\n| `:Anchor grep {1-9}` | Open the fuzzy finder with live grep to search through anchored directories at slots 1–9. (e.g. :`Anchor grep 3`) Currently only supported by fzf-lua and telescope. |\n| `:Anchor worktrees` | Open the git worktrees picker. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachyarbrough%2Fanchor.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzachyarbrough%2Fanchor.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachyarbrough%2Fanchor.nvim/lists"}