utilyre / barbecue.nvim

Visual Studio Code inspired breadcrumbs plugin for the Neovim editor
MIT License
776 stars 31 forks source link

chore: pass winnr to custom sections #74

Closed ditsuke closed 1 year ago

ditsuke commented 1 year ago

Changes

Passes window handles to custom section generators

Rationale

The custom sections may depend on the parent window, considering they're unique to each window. For example my own usecase involved getting the window number from vim.api.nvim_vim_get_number which worked fine once the winbars were updated on switching windows but not on session restoration.

utilyre commented 1 year ago

Thanks!