24 lines
512 B
Lua
24 lines
512 B
Lua
return {
|
|
"akinsho/bufferline.nvim",
|
|
event = "VeryLazy",
|
|
opts = {
|
|
options = {
|
|
separator_style = { " ", " " },
|
|
},
|
|
highlights = {
|
|
buffer_selected = { italic = false, bold = false },
|
|
},
|
|
},
|
|
config = function(_, opts)
|
|
require("bufferline").setup(opts)
|
|
-- Fix bufferline when restoring a session
|
|
vim.api.nvim_create_autocmd("BufAdd", {
|
|
callback = function()
|
|
vim.schedule(function()
|
|
pcall(nvim_bufferline)
|
|
end)
|
|
end,
|
|
})
|
|
end,
|
|
}
|