Customizing tabline in mini.tabline plugin #1510
-
Contributing guidelines
Module(s)mini.tabline QuestionIs it possible to customize the tabline as shown in the screenshot, where I have the tab number (e.g., "01", "02", "03") on the left and the file name (e.g., "Blink.lua") on the right? The screenshot shows how the tabby plugin does it, but I was wondering if something similar can be achieved with Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
'mini.tabline' is not designed for this kind of customization, I am afraid. The closest you can do to showing only single "tab" (if I understand correctly what you mean here) is try finding the |
Beta Was this translation helpful? Give feedback.
Tabpage is not the same as buffer (see
:h windows-intro
). Inconfig.format
you cycle through tabpages, not buffers. To return empty string for non-current buffers it should start with something likeif buf_id ~= vim.api.nvim_get_current_buf() then return '' end
.