Open ajitid opened 2 years ago
I think I tried to call vim.api.nvim_buf_set_option(0, "buflisted", true)
on TabEnter
but it was not quite working. I will check it again.
@ajitid could you check if this fixed it?
Seems like this fixed it, but this also created a new problem. To reproduce:
:tabnew
:ls
I noticed it. I think the problem is that the TabEvents happen before BufEnter
. I'm trying to fix this without introducing custom commands.
I think it now works with :tabnew
and <c-w>T
. It still doesn't work with :tab sb
, I think it's an upstream issue, it doesn't trigger the TabNewEntered
event. They fixed <c-w>T
https://github.com/neovim/neovim/issues/4979 a while ago.
EDIT: here's the issue https://github.com/neovim/neovim/issues/4334
Yep, I've subscribed to that issue. Let's keep this open until upstream is resolved.
I think it now works with
:tabnew
and<c-w>T
. It still doesn't work with:tab sb
, I think it's an upstream issue, it doesn't trigger theTabNewEntered
event. They fixed<c-w>T
neovim/neovim#4979 a while ago.EDIT: here's the issue neovim/neovim#4334
The neovim issue you mentioned has been fixed. I haven't checked if it fixes this ticket as well.
Seems like this fixed it, but this also created a new problem. To reproduce:
- Open a file
- Do
:tabnew
- Do
:ls
- Even though this is a new tab you would see the buffer in your previous tab as your alternate buffer here
Just checked, this isn't fixed.
Steps to reproduce:
:tab sb
or<c-w>T
:ls
. You won't see the buffer as it is unlisted:setlocal buflisted
followed by:ls
. You would now see the buffer appearing in the buffer list.