nanozuki / tabby.nvim

A declarative, highly configurable, and neovim style tabline plugin. Use your nvim tabs as a workspace multiplexer!
MIT License
563 stars 21 forks source link

Plugin sets showtabline option to 2 when enabled #134

Closed Demianeen closed 2 months ago

Demianeen commented 3 months ago

Hi! Just came across your nice plugin and wanted to use it. I happen to stumble on unexpected (at least for me) behaviour described above. Take a look:

https://github.com/nanozuki/tabby.nvim/assets/51330172/fe05bd8c-8573-4e87-a049-0059613e6816

Is it expected?

I use last nightly and last MacOS Sonoma

Demianeen commented 3 months ago

Workaround for now:

return {
    'nanozuki/tabby.nvim',
    event = 'VimEnter',
    dependencies = 'nvim-tree/nvim-web-devicons',
    opts = {},
    config = function(_, opts)
        require('tabby').setup(opts)
        vim.o.showtabline = 1
    end
}
nanozuki commented 3 months ago

Oh,for back compatibility, the default setup (and lazy's opt) still fits v1. You can check

nanozuki commented 3 months ago

In the V2 config, the showtabline won't be set by default. I want to do some change to fit setup, because setup come to fact standard