nvim-lualine / lualine.nvim

A blazing fast and easy to configure neovim statusline plugin written in pure lua.
MIT License
6.19k stars 466 forks source link

How to change position of tabline when neo-tree is opened #1010

Open kaykhan opened 1 year ago

kaykhan commented 1 year ago

Is it possible to change the position of the tabline when neo-tree is opened.

I would like to see the buffer auth.service.ts in the tabline to be positioned passed the dividing line when the neo-tree is opened.

image

So the first buffer in the tabline would instead be shown above auth instead of currently it shown above "Files"

require("lualine").setup({
    options = {
        icons_enabled = true,
        theme = custom_codedark,
        component_separators = { left = "|", right = "|" },
        section_separators = { left = " ", right = " " },
        disabled_filetypes = {
            statusline = {},
            winbar = {},
        },
        ignore_focus = {},
        always_divide_middle = true,
        globalstatus = false,
        refresh = {
            statusline = 1000,
            tabline = 1000,
            winbar = 1000,
        },
    },
    sections = {
        lualine_a = { "mode" },
        lualine_b = { "branch", "diff" },
        lualine_c = { "filename" },
        lualine_x = { "diagnostics", "encoding", "fileformat", "filetype" },
        lualine_y = { "progress" },
        lualine_z = { "location" },
    },
    inactive_sections = {
        lualine_a = {},
        lualine_b = {},
        lualine_c = { "filename" },
        lualine_x = { "location" },
        lualine_y = {},
        lualine_z = {},
    },
    tabline = {
        lualine_a = { "buffers" },
        lualine_x = {},
        lualine_y = {},
        lualine_z = { "tabs" },
    },
    winbar = {
    },
    inactive_winbar = {},
    extensions = {},
})
wr9dg17 commented 8 months ago

@kaykhan did you managed to achieve the desired result? I also wanted to create issue for exact same reason