Jump buffer with tabs in neovim

Suppose the following use case:

  • I have 2 tabs.

  • On tab 1 I have buffers a,b,c (a & b vertically split, c is horizontally split from b)

  • On tab 2 I have buffers d, e - vertically split.

  • Some other tab

  • I am on tab1, with my cursor on the window that has buffer a.


  • i want to jump to buffer d that keep buffer position in tab
  • how to deal with lua code , not key