-
Notifications
You must be signed in to change notification settings - Fork 5
tabline_tabpages
Zeioth edited this page Mar 3, 2024
·
4 revisions
You can add this component to the tabline section of heirline opts.
require("heirline-components.all").component.tabline_tabpages()
It displays a indicator with the available tabpages.
Clicking x, will close the specified tab.
These are the available providers for this component and its options.
-- Note: We don't currently expose the provider for creating the tabpages,
-- or the close button, so you can only customize the condition.
condition = function() -- display if more than 1 tab.
return #vim.api.nvim_list_tabpages() > 1
end,