-- Top buffer line require'bufferline'.setup({ options = { numbers = "ordinal", number_style = "superscript" } }) -- These commands will navigate through buffers in order regardless of which mode you are using -- e.g. if you change the order of buffers :bnext and :bprevious will not respect the custom ordering vim.api.nvim_set_keymap('', '', ':BufferLineCyclePrev', {}) vim.api.nvim_set_keymap('', '', ':BufferLineCycleNext', {}) -- These commands will move the current buffer backwards or forwards in the bufferline vim.api.nvim_set_keymap('', '', ':BufferLineMovePrev', {}) vim.api.nvim_set_keymap('', '', ':BufferLineMoveNext', {}) -- " These commands will sort buffers by directory, language, or a custom criteria -- nnorevim.api.nvim_set_keymap be :BufferLineSortByExtension -- nnorevim.api.nvim_set_keymap bd :BufferLineSortByDirectory -- nnorevim.api.nvim_set_keymap :lua require'bufferline'.sort_buffers_by(function (buf_a, buf_b) return buf_a.id < buf_b.id end)