require'bufferline'.setup{} vim.api.nvim_set_keymap('n', '', ':BufferLineCycleNext', { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '', ':BufferLineCyclePrev', { noremap = true, silent = true }) --" These commands will move the current buffer backwards or forwards in the bufferline --nnoremap :BufferLineMoveNext --nnoremap :BufferLineMovePrev --" These commands will sort buffers by directory, language, or a custom criteria --nnoremap be :BufferLineSortByExtension --nnoremap bd :BufferLineSortByDirectory --nnoremap :lua require'bufferline'.sort_buffers_by(function (buf_a, buf_b) return buf_a.id < buf_b.id end)