[Feature Request]: A way to retrieve a buffer's `current_index`
thenbe opened this issue · comments
Naser Aleisa commented
What?
I wanted to create a keymap to move buffers. Bufferline has a function that allows us to do this:
require('bufferline').move_to(new_index, current_index)
However, I don't know what the buffer's current_index
is. I know everything about the buffer I want to act on, except it's current_index
. How can I get a buffer's current_index
for the purposes of the function above?
Is there some way one can exchange a bufnr
for a bufferline current_index
?
Why?
I'm trying to attach mappings to a telescope buffer picker.
Naser Aleisa commented