Replies: 2 comments
-
Here are some example components for Grapple and Harpoon: Grapple = {
provider = function()
local available, grapple = pcall(require, "grapple")
if available then
local key = grapple.key()
if key ~= nil then return " " .. key .. " " end
end
end,
} Harpoon = {
provider = function()
local mark = require("harpoon.mark")
local filename = vim.api.nvim_buf_get_name(0)
local succuss, index = pcall(mark.get_index_of, filename)
if succuss and index and index > 0 then
return " " .. index .. " "
else
return
end
end,
}
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Unfortunately, afaik there isn't a simple way to get the statusline to refresh immediately when you mark the file, so might need to manually call |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wonder if someone did component for harpoon
Beta Was this translation helpful? Give feedback.
All reactions