Skip to content

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. screenshot_2024-02-24_00-42-46_331023971

Clicking x, will close the specified tab.

Available providers

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,
Clone this wiki locally