Hi.
Before anything, thank you for this amazing plugin!
My question is related to having many tabs (which is something I run into from time to time). For example when I'm getting close to the max width of my terminal it looks like this:
When the whole tabline width exceeds the terminal width, it hides some information on the left
If I select the left-most tab, it keeps hiding some tab info
and if I keep creating more tabs and the selected tab happens to be the left-most tab, than it's hidden completely
My config is (using lazy.nvim):
return {
{
"nanozuki/tabby.nvim",
dependencies = {
{ "folke/tokyonight.nvim" },
},
config = function()
local colors = require("tokyonight.colors").setup()
local theme = {
fill = "TabLineFill",
current_tab = { fg = colors.black, bg = colors.blue, style = "bold" },
tab = { style = "italic" },
}
require("tabby.tabline").set(function(line)
return {
line.spacer(),
line.tabs().foreach(function(tab)
local hl = tab.is_current() and theme.current_tab or theme.tab
return {
line.sep(tab.is_current() and "" or "", hl, theme.fill),
tab.number(),
string.gsub(tab.name(), "%[..%]", ""),
line.sep(tab.is_current() and " " or " ", hl, theme.fill),
hl = hl,
margin = " ",
}
end),
line.spacer(),
}
end)
end,
},
}
Is there any option I can use when setting up the plugin that let me cycle through all the tabs and keep the selected one visible on screen? (sorry if it's a dumb question or the answer is obvious. I'm still learning neovim and Lua)
Hi. Before anything, thank you for this amazing plugin!
My question is related to having many tabs (which is something I run into from time to time). For example when I'm getting close to the max width of my terminal it looks like this:![image](https://github.com/nanozuki/tabby.nvim/assets/15330034/813aafaf-9002-464d-b413-6eeddc1bc226)
When the whole tabline width exceeds the terminal width, it hides some information on the left![image](https://github.com/nanozuki/tabby.nvim/assets/15330034/828464d6-bdc4-4f6c-b423-1d566201758f)
If I select the left-most tab, it keeps hiding some tab info![image](https://github.com/nanozuki/tabby.nvim/assets/15330034/0bd2122d-45fa-4e49-9875-d349c0aebe12)
and if I keep creating more tabs and the selected tab happens to be the left-most tab, than it's hidden completely![image](https://github.com/nanozuki/tabby.nvim/assets/15330034/7bc42b90-c150-40a8-8b0c-9030b1a27481)
My config is (using lazy.nvim):
Is there any option I can use when setting up the plugin that let me cycle through all the tabs and keep the selected one visible on screen? (sorry if it's a dumb question or the answer is obvious. I'm still learning neovim and Lua)