Harpoon buffer integration #1073
MarcelRobitaille
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've integrated harpoon into the lualine buffers component. This way, if a buffer is in your harpoon list, it will show the harpoon number in superscript next to the buffer number. The use case is to quickly jump to a file in your harpoon list by its number (usually, these numbers are kept to a minimum unlike buffer numbers which can grow to hundreds).
init.lua
andzshrc
and 1 and 2 in the list, so 1 and 2 are shown next to their buffer number.This is half show and tell and half a question: what's the best way for me to share this? I don't really want to create an extension that adds a new
harpoonbuffers
component because the code would be 99% identical.Here is essentially all the code:
To-do:
require('harpoon.mark')
failingharpoon-menu
in the buffers listBeta Was this translation helpful? Give feedback.
All reactions