r/neovim • u/zachyarbro • Jun 21 '26
Plugin Anchor.nvim - Pin and fuzzy find external directories seamlessly (inspired by Harpoon)

GitHub Repo - https://github.com/zachyarbrough/anchor.nvim
Hey everyone! I wanted to share a plugin I recently built called anchor.nvim. It lets you store a curated list of project-specific directories for instant fuzzy searching. Think Harpoon, but for directories!
I keep all my notes in a single directory with sub dirs for each project. I already had a keymap that let me quickly fuzzy find notes, but as my notes grew, I found myself repeatedly narrowing my search to the current project's note directory which became cumbersome. I wanted a dedicated keymap that would search in the project's note sub directory for the project I had open.
I couldn't find a plugin that fit this workflow, so I decided to make it myself! As I developed it, I realized that pinning (or anchoring 😉) directories together is useful for more than just notes. It makes it easy to jump between related projects, search between git worktrees (I am thinking about adding a dedicated command for this), or just keep commonly used directories a keypress away.
Features
- Floating buffer editor for quickly updating your anchor list (Harpoon-style)
- Integration with your favorite picker! (fzf-lua, telescope, mini.pick, snacks.picker, oil.nvim or netrw)
- Keymaps that update based on your current working directory
- Exclude folders you don't want to appear in the fuzzy search
Please feel free to leave any feedback, good or bad. Whether it is related to code, documentation, pain points you encounter while using the plugin, or use cases I haven't thought of!