change to open new buffers at last position and show buffer numbers

This commit is contained in:
2024-11-22 15:14:34 -05:00
parent 1b1222be02
commit a440286680
+8 -1
View File
@@ -5,7 +5,8 @@ return {
event = 'VeryLazy', event = 'VeryLazy',
opts = { opts = {
options = { options = {
mode = 'buffer', mode = 'buffers',
numbers = 'both', -- or buffer_id
separator_style = 'slant', separator_style = 'slant',
diagnostics = 'nvim_lsp', diagnostics = 'nvim_lsp',
-- diagnostics_indicator = function(count, level, diagnostics_dict, context) -- diagnostics_indicator = function(count, level, diagnostics_dict, context)
@@ -24,6 +25,11 @@ return {
indicator = { indicator = {
style = 'underline', style = 'underline',
}, },
buffer_close_icon = '󰅖',
modified_icon = '',
close_icon = '',
left_trunc_marker = '',
right_trunc_marker = '',
offsets = { offsets = {
{ {
filetype = 'NvimTree', filetype = 'NvimTree',
@@ -34,6 +40,7 @@ return {
separator = true, separator = true,
}, },
}, },
sort_by = 'insert_at_end',
custom_areas = { custom_areas = {
right = function() right = function()
local result = {} local result = {}