Dracula theme and, buffer separator switch

This commit is contained in:
Alessandro Morelli
2021-07-07 00:44:09 +02:00
committed by Olivier Roques
parent 94c35e5c83
commit 2e5279b1aa
2 changed files with 138 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ M.options = {
bufferline_settings = {
exclude_terminal = false,
show_index = false,
separator = true,
},
theme = 'default',
sections = {
@@ -167,7 +168,10 @@ function M.update_bufferline()
local sections = {}
local settings = M.options.bufferline_settings
local buffers = bufferline.get_buffers(settings)
local separator = '|'
local separator = ''
if M.options.bufferline_settings.separator then
separator = '|'
end
for i, buffer in ipairs(buffers) do
table.insert(sections, bufferline.to_section(buffer, i, settings))
if i < #buffers then