loctvl842 / breadcrumb.nvim

breadcrumb for neovim
18 stars 1 forks source link

Wrong breadcrumb for inactive window #2

Open sytranvn opened 4 months ago

sytranvn commented 4 months ago

Hi, I am using this configuration, but opening different files show same breadcrumb for every files.

local breadcrumb = function()
    local breadcrumb_status_ok, breadcrumb = pcall(require, "breadcrumb")
    if not breadcrumb_status_ok then
        return
    end
    return breadcrumb.get_breadcrumb()
end

local config = {
    winbar = {
        lualine_a = {},
        lualine_b = {},
        lualine_c = { breadcrumb },
        lualine_x = {},
        lualine_y = {},
        lualine_z = {},
    },
    inactive_winbar = {
        lualine_a = {},
        lualine_b = {},
        lualine_c = { breadcrumb },
        lualine_x = {},
        lualine_y = {},
        lualine_z = {},
    },
}

lualine.setup(config)

Screenshot 2024-03-14 at 09 57 55

loctvl842 commented 4 months ago

Sorry, I forgot to deprecate this repository, please use other better plugins such as barbecue or dropbar. This repository is no longer maintain. I just try to test out SmitshP's plugin.

sytranvn commented 4 months ago

Thanks.