18 lines
761 B
Lua
18 lines
761 B
Lua
vim.opt.termguicolors = true
|
|
local bufferline = require('bufferline')
|
|
bufferline.setup({
|
|
options = {
|
|
mode = "buffers", -- set to "tabs" to only show tabpages instead
|
|
style_preset = bufferline.style_preset.minimal, -- or bufferline.style_preset.minimal,
|
|
|
|
separator_style = { "", "" }, --"thin", --| "slope" | "thick" | "thin" | { 'any', 'any' },
|
|
indicator = {
|
|
icon = '', -- this should be omitted if indicator style is not 'icon'
|
|
style = 'none',
|
|
},
|
|
}
|
|
})
|
|
|
|
vim.api.nvim_set_keymap('n', '<leader>[', ':BufferLineCyclePrev<CR>', { noremap = true, silent = true })
|
|
vim.api.nvim_set_keymap('n', '<leader>]', ':BufferLineCycleNext<CR>', { noremap = true, silent = true })
|