You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I don't use neovim tabs, and I would like grapple tags to behave as if they were tabs, more specifically I would like the setup lualine to show the relpath of each grapple tag as if they were tabs.
tabline = {
lualine_a = {
{
function()
local tags = require("grapple").tags()
if not tags then return "" end
local current_buf_path = vim.fn.expand('%:p')
return table.concat(vim.tbl_map(function(tag)
-- local redacted_path = vim.fn.fnamemodify(tag.path, ":~:.")
local redacted_path = vim.fn.fnamemodify(tag.path, ":t")
if tag.path == current_buf_path then
return "[" .. redacted_path .. "]" -- or use * or any other indicator you prefer
end
return redacted_path
end, tags), " | ")
end,
}
}
},
But there are small issues here and there (I didn't document them, though).
Additional context
No response
The text was updated successfully, but these errors were encountered:
Did you check the docs?
Is your feature request related to a problem? Please describe.
I don't use neovim tabs, and I would like grapple tags to behave as if they were tabs, more specifically I would like the setup lualine to show the relpath of each grapple tag as if they were tabs.
Describe the solution you'd like
Similarly to the examples from https://github.com/cbochs/grapple.nvim?tab=readme-ov-file#lualine-component, but for a top bar, listing the relpath of the tags, and highlighting the tag that's in the current buffer (if the buffer is one of the tags).
Describe alternatives you've considered
The closest I could get was using:
But there are small issues here and there (I didn't document them, though).
Additional context
No response
The text was updated successfully, but these errors were encountered: