Neovim quick file switcher
Lua 97.9%
Shell 2.1%
Other 0.1%
5 1 3

Clone this repository

https://tangled.org/ejri.dev/javelin.nvim
git@knot.ejri.dev:ejri.dev/javelin.nvim

For self-hosted knots, clone URLs may differ based on your setup.

README.md

javelin.nvim#

Yet Another Harpoon Clone.

A Neovim plugin to quick switch between files, essentially a simplified version of harpoon. One main difference is use_git_root which will make the lists per project, rather than purely based on the current directory.

Dependencies#

folke/snacks.nvim

Configuration#

{
	use_git_root = true,
	-- Passthrough options to Snacks.win
	menu = {
		width = 0.6,
		height = 8,
		title_pos = "center",
		border = "rounded",
		keys = {
			["<CR>"] = "goto",
			q = "close",
			["<Esc>"] = "close",
		},
	},
}

Commands#

  • :Javelin open - Open popup menu, list of javelin'd items
  • :Javelin add - Add current buffer to list

Functions#

  • require("javelin").open() - Open popup menu, list of javelin'd items
  • require("javelin").add() - Add current buffer to list
  • require("javelin").select(num) - Open buffer at num position in the list