Closed tummetott closed 2 weeks ago
I realized I can solve the second use case with the filter()
function:
{
title = 'QUICKFIX LIST',
filter = function(_, win)
return vim.fn.getwininfo(win)[1]['loclist'] ~= 1
end,
ft = 'qf',
},
{
title = 'LOCATION LIST',
filter = function(_, win)
return vim.fn.getwininfo(win)[1]['loclist'] == 1
end,
ft = 'qf',
},
However, in cases where a single filetype covers various instances, like help documents and manpages, it would be very helpful to have the filename or bufname included in the winbar
information. This feature request is kindly submitted for consideration, aiming to enhance user experience.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Did you check the docs?
Is your feature request related to a problem? Please describe.
It would be awesome if
opts.[direction].title
can accept a string and a function (the functions must return a string).Two use cases:
Describe the solution you'd like
opts.[direction].title
accepts string and functionDescribe alternatives you've considered
Disabling the winbar
winbar = false
for a filetype and handling it manually with my winbar plugin. However this is a workaround and i'd love to handle all the winbar titles inedgy.nvim
Additional context
No response