Skip to content

The tabs move with a mouse-over event #659

@EdmundsEcho

Description

@EdmundsEcho

Hello -- I have been using this plugin for 2-3 years now (it seems) - a nice/critical contribution to the neovim community. Thank you!

I update my plugins routinely. In the past couple of weeks, this bug appeared. It is actually, really annoying - the tabs move out from under my mouse when I try to click to either select or close the tab.

Visual of the bug

Here is a 10 second screencast. Please keep in mind I'm not clicking I'm just moving the mouse.

barbar-bug-12-15-2025.mov

Final note describing the bug

I can "fix-it" by disabling the ability to click on the tabs.

Context

Barbar configuration using lazy

return {
    "romgrk/barbar.nvim",
    enabled = true,
    dependencies = {
        "lewis6991/gitsigns.nvim", -- OPTIONAL: for git status
        "nvim-tree/nvim-web-devicons", -- OPTIONAL: for file icons
    },
    init = function()
        vim.g.barbar_auto_setup = false
        vim.api.nvim_create_autocmd({ "BufAdd", "BufDelete" }, {
            callback = vim.schedule_wrap(function() vim.cmd.BufferOrderByBufferNumber() end),
        })
    end,
    opts = {
        icons = {
            -- Configure the base icons on the bufferline.
            -- Valid options to display the buffer index and -number are `true`, 'superscript' and 'subscript'
            buffer_index = false,
            buffer_number = false,
            button = "×",
            -- Enables / disables diagnostic symbols
            separator = { left = "|", right = "" },
            inactive = { button = "×" },

            -- Configure the icons on the bufferline based on the visibility of a buffer.
            -- Supports all the base icon options, plus `modified` and `pinned`.
            alternate = { filetype = { enabled = false } },
            current = { buffer_index = true },
            visible = { modified = { buffer_number = false } },
            diagnostics = {
                [vim.diagnostic.severity.ERROR] = {
                    enabled = true,
                    icon = "",
                },
                [vim.diagnostic.severity.WARN] = { enabled = false },
                [vim.diagnostic.severity.INFO] = { enabled = false },
                [vim.diagnostic.severity.HINT] = { enabled = true },
            },
        },
    },
}

Neovim version

NVIM v0.11.4
Build type: Release
LuaJIT 2.1.1753364724

OS

Apple M1 Pro
Sonoma 14.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions