ghillb / cybu.nvim

Neovim plugin that offers context when cycling buffers in the form of a customizable notification window.
MIT License
305 stars 5 forks source link

Cycle buffers in an MRU fashion #25

Closed krzkrzkrz closed 10 months ago

krzkrzkrz commented 10 months ago

Is is possible to configure Cybu to cycle buffers in an MRU fashion? Similar to what Telescope is doing

For example, with sort_mru=true:

:Telescope buffers path=%:p:h initial_mode=insert select_buffer=true sort_mru=true<CR>
ghillb commented 10 months ago

Yes, here is an example:

vim.keymap.set({"n", "v"}, "<c-s-tab>", "<plug>(CybuLastusedPrev)")
vim.keymap.set({"n", "v"}, "<c-tab>", "<plug>(CybuLastusedNext)")