NTBBloodbath / galaxyline.nvim

neovim statusline plugin written in lua
MIT License
163 stars 16 forks source link

fix(providers): return the `bufnr` instead of the buffer index #8

Closed joelpalmer closed 2 years ago

joelpalmer commented 2 years ago

Return the actual bufnr as opposed to the index of listed buffers. Now you will get the buffer number as seen when running :ls. Maybe there was a good reason for wanting this index but it seemed to be that users would expect bufnr. You can use bufnr for [N] when using :buffer [N] and alike. I don't know what you can do with that index returned now. If I have misunderstood the provider's use case, then apologies. My intent is to fix, not cause breaking changes on expected behavior. 😄

I hope this adds value for users. It certainly has helped me. Thanks again for forking and maintaining @NTBBloodbath 👍🏼

Reference: https://github.com/neovim/neovim/search?q=nvim_win_get_buf