A bufferline-like lualine component #167
al-ce
started this conversation in
Show and tell
Replies: 1 comment
-
name_formatter = function(buf)
local tags = require("grapple").tags()
for k, v in ipairs(tags) do
if v["path"] == buf["path"] then
return v["name"] .. " " .. buf["name"]
end
end
end, I'm using named tags (Function Keys). My keymap uses { "<F24>", "<cmd>Grapple tag name=F12<cr><cmd>redrawtabline<cr>", desc = "Set F12 tag" }, -- (Shift F12 is F24.) |
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
-
Just wanted to share, I haven't used bufferline in a while but I liked the idea of seeing my tagged buffers at the top with a bit more information than the builtin provides. Though I wonder if I could achieve the same thing with existing Grapple API, or at least simplify this quite a bit, but I couldn't figure it out in my initial attempts.
That's the tabline with @mikesmithgh 's git-prompt-string-lualine followed by the grapple component, then the winbar underneath showing the current buffer.
Beta Was this translation helpful? Give feedback.
All reactions