Requirements
Before installing Harpoon, ensure you have:- Neovim 0.5.0 or higher - Harpoon uses Lua APIs introduced in Neovim 0.5
- plenary.nvim - Required dependency for file operations and popup windows
Check your Neovim version by running
:version in Neovim or nvim --version in your terminal.Installation methods
Restart and install
After adding Harpoon to your configuration:For lazy.nvim:
- Restart Neovim, and lazy.nvim will automatically install the plugin
- Or run
:Lazy syncto install immediately
- Run
:PackerSyncto install the plugin - Restart Neovim
- Run
:PlugInstallin Neovim - Restart Neovim
- Run
:Pckr sync - Restart Neovim
Basic setup
Harpoon works out of the box without any configuration, but you’ll want to set up some keybindings to make it useful. Add this to your Neovim configuration:Optional configuration
If you want to customize Harpoon’s behavior, you can call the setup function:What’s next?
Now that Harpoon is installed, follow the quickstart guide to learn how to use it:Quickstart guide
Mark your first file and start navigating in under 2 minutes