From a440286680a68ef5dbb24d1cd2e71e862ea27b89 Mon Sep 17 00:00:00 2001 From: Charles Danesi Date: Fri, 22 Nov 2024 15:14:34 -0500 Subject: [PATCH] change to open new buffers at last position and show buffer numbers --- .config/nvim/lua/plugins/bufferline.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/plugins/bufferline.lua b/.config/nvim/lua/plugins/bufferline.lua index 8409701..20c3b7c 100644 --- a/.config/nvim/lua/plugins/bufferline.lua +++ b/.config/nvim/lua/plugins/bufferline.lua @@ -5,7 +5,8 @@ return { event = 'VeryLazy', opts = { options = { - mode = 'buffer', + mode = 'buffers', + numbers = 'both', -- or buffer_id separator_style = 'slant', diagnostics = 'nvim_lsp', -- diagnostics_indicator = function(count, level, diagnostics_dict, context) @@ -24,6 +25,11 @@ return { indicator = { style = 'underline', }, + buffer_close_icon = '󰅖', + modified_icon = '● ', + close_icon = ' ', + left_trunc_marker = ' ', + right_trunc_marker = ' ', offsets = { { filetype = 'NvimTree', @@ -34,6 +40,7 @@ return { separator = true, }, }, + sort_by = 'insert_at_end', custom_areas = { right = function() local result = {} @@ -55,4 +62,4 @@ return { }, }, }, -} +} \ No newline at end of file