Initial commit
This commit is contained in:
30
after/plugin/bufferline.lua
Normal file
30
after/plugin/bufferline.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
local bufferline = require("bufferline")
|
||||
|
||||
bufferline.setup {
|
||||
options = {
|
||||
mode = "buffers",
|
||||
style_preset = bufferline.style_preset.default,
|
||||
themable = true,
|
||||
numbers = "none",
|
||||
close_command = "bdelete! %d",
|
||||
indicator = {
|
||||
icon = "▎",
|
||||
style = "icon"
|
||||
},
|
||||
max_name_length = 18,
|
||||
max_prefix_length = 15,
|
||||
truncate_names = true,
|
||||
tab_size = 18,
|
||||
offsets = {
|
||||
{
|
||||
filetype = "NvimTree",
|
||||
}
|
||||
},
|
||||
color_icons = true,
|
||||
get_element_icon = function(element)
|
||||
local icon, hl = require('nvim-web-devicons').get_icon_by_filetype(element.filetype, { default = false })
|
||||
return icon, hl
|
||||
end,
|
||||
always_show_bufferline = true,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user