Skip to content

adithyasource/spearmint.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

spearmint

a harpoon style upgrade to default neovim / vim marks but in ~100 LOC

to install

with nvim 0.12.0+

vim.pack.add({ "https://github.com/adithyasource/spearmint.nvim" })

or add adithyasource/spearmint to your favourite package manager of choice

or install it manually

git clone https://github.com/adithyasource/spearmint.nvim ~/.config/nvim/pack/nvim/start/spearmint.nvim

run this to enable its functionality

require('spearmint').setup()

how to use

  • with the default config, hit m followed by any character and your file will be assigned to that key.
  • as you move around files and change locations, if you ever need to go back to that file, hit ' followed by the character you want
  • you'll be taken back to your last position in that file

configure

default config

{
  set_key = "m",
  jump_key = "'"
}

pass an updated table to the setup function to change the keymaps; example:

require('spearmint').config({
  set_key = "<C-h>"
})

why?

i wanted something not as heavy as harpoon; it has a ui which i end up not using often, so i ended up using default vim marks but they had no project context and required me to hit caps lock for setting "global" marks. thus, i ended up making this: has project wise marks, really lightweight and works with terminal buffers :]

Contributors

Languages