Neovim quick file switcher
1# javelin.nvim
2
3Yet Another Harpoon Clone.
4
5A Neovim plugin to quick switch between files, essentially a simplified version of harpoon.
6One main difference is `use_git_root` which will make the lists per project, rather than purely
7based on the current directory.
8
9## Dependencies
10
11```
12folke/snacks.nvim
13```
14
15## Configuration
16
17```lua
18{
19 use_git_root = true,
20 -- Passthrough options to Snacks.win
21 menu = {
22 width = 0.6,
23 height = 8,
24 title_pos = "center",
25 border = "rounded",
26 keys = {
27 ["<CR>"] = "goto",
28 q = "close",
29 ["<Esc>"] = "close",
30 },
31 },
32}
33```
34
35## Commands
36
37- `:Javelin open` - Open popup menu, list of javelin'd items
38- `:Javelin add` - Add current buffer to list
39
40## Functions
41
42- `require("javelin").open()` - Open popup menu, list of javelin'd items
43- `require("javelin").add()` - Add current buffer to list
44- `require("javelin").select(num)` - Open buffer at `num` position in the list