20 lines
484 B
Lua
20 lines
484 B
Lua
|
require('bufferline')
|
||
|
|
||
|
-- format as "<id>. <file-name>"
|
||
|
local tabname_format = function (opts)
|
||
|
return string.format('%s.', opts.ordinal)
|
||
|
end
|
||
|
|
||
|
require('bufferline').setup({
|
||
|
options = {
|
||
|
always_show_bufferline = true,
|
||
|
numbers = tabname_format,
|
||
|
show_buffer_icons = true,
|
||
|
show_buffer_close_icons = false,
|
||
|
show_close_icon = false,
|
||
|
--separator_style = 'slant',
|
||
|
},
|
||
|
-- Don't use italic on current buffer
|
||
|
highlights = {buffer_selected = { gui = "bold" },},
|
||
|
})
|